From: Reinhold Kainhofer Date: Tue, 17 Nov 2009 16:52:01 +0000 (+0100) Subject: tie_performer: Remove start heads, for which the tie has been created. X-Git-Tag: release/2.13.8-1~16 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d4d6cf3528030a438c87bd5390f056217bbb1afa;p=lilypond.git tie_performer: Remove start heads, for which the tie has been created. This avoids clearing the list of waiting heads (which will be needed if tieWaitForNote is set --- diff --git a/lily/tie-performer.cc b/lily/tie-performer.cc index 0d60c758cb..35d52ce0d4 100644 --- a/lily/tie-performer.cc +++ b/lily/tie-performer.cc @@ -77,8 +77,11 @@ Tie_performer::acknowledge_audio_element (Audio_element_info inf) && ly_is_equal (right_mus->get_property ("pitch"), left_mus->get_property ("pitch"))) { + found = true; an->tie_to (th); ties_created_ = true; + // this invalidates the iterator, we are leaving the loop anyway + heads_to_tie_.erase (it); } } } @@ -96,7 +99,7 @@ Tie_performer::stop_translation_timestep () { // We might have dangling open ties like c~ d. Close them, unless we have // tieWaitForNote set... - if (ties_created_ || !to_boolean (get_property ("tieWaitForNote"))) + if (!to_boolean (get_property ("tieWaitForNote"))) { heads_to_tie_.clear (); ties_created_ = false;