]> git.donarmstrong.com Git - lilypond.git/commitdiff
MIDI: fix regtest failure
authorKeith OHara <k-ohara5a5a@oco.net>
Tue, 15 Mar 2011 02:57:32 +0000 (19:57 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Tue, 15 Mar 2011 02:57:32 +0000 (19:57 -0700)
commit 27d3e1188 had caused make check to crash

lily/staff-performer.cc

index 35b1746b8a36800a2db601a2c2d5cc6b16fd723a..f98206c7a2e428f3001dec059edc0666c5aa7e46 100644 (file)
@@ -111,9 +111,9 @@ Staff_performer::new_audio_staff (string voice)
       name_ = new Audio_text (Audio_text::TRACK_NAME, context ()->id_string ()
                              + ":" + voice);
       audio_staff->add_audio_item (name_);
+      announce_element (Audio_element_info (name_, 0));
     }
   announce_element (Audio_element_info (audio_staff, 0));
-  announce_element (Audio_element_info (name_, 0));
   staff_map_[voice] = audio_staff;
   return audio_staff;
 }