]> git.donarmstrong.com Git - lilypond.git/commitdiff
Part-combine: Fix uninitialized last_playing_ member
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 21 Aug 2011 12:14:35 +0000 (14:14 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 22 Aug 2011 10:32:50 +0000 (12:32 +0200)
lily/part-combine-iterator.cc

index 4521abc15e24889b8004e0f4afad5643f5a61c95..4583d221f646ef9bcdc801dd46c4674366795fb3 100644 (file)
@@ -89,7 +89,7 @@ private:
   Status last_playing_;
 
   /*
-    TODO: this is getting of hand...
+    TODO: this is getting off hand...
   */
   Context_handle handles_[NUM_OUTLETS];
 
@@ -135,6 +135,7 @@ Part_combine_iterator::Part_combine_iterator ()
   split_list_ = SCM_EOL;
   state_ = APART;
   playing_state_ = APART;
+  last_playing_ = APART;
 
   busy_ = false;
   notice_busy_ = false;
@@ -241,8 +242,7 @@ Part_combine_iterator::unisono (bool silent)
       Outlet_type c1 = (last_playing_ == SOLO2) ? CONTEXT_NULL : CONTEXT_SHARED;
       Outlet_type c2 = (last_playing_ == SOLO2) ? CONTEXT_SHARED : CONTEXT_NULL;
       substitute_both (c1, c2);
-      kill_mmrest ((last_playing_ == SOLO2)
-                   ? CONTEXT_ONE : CONTEXT_TWO);
+      kill_mmrest ((last_playing_ == SOLO2) ? CONTEXT_ONE : CONTEXT_TWO);
       kill_mmrest (CONTEXT_SHARED);
 
       if (playing_state_ != UNISONO