From d4d6cf3528030a438c87bd5390f056217bbb1afa Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer Date: Tue, 17 Nov 2009 17:52:01 +0100 Subject: [PATCH] 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 --- lily/tie-performer.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.2