From 8b13d198d0ee2015673eb60d69494a2fd7ca8df6 Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Tue, 19 Apr 2011 09:57:23 -0400 Subject: [PATCH] Fixes segfaut resulting from the use of the Completion_heads_engraver This segfault was caused by using an incorrect variable to index a vector, which wound up overshooting the end of the vector. --- lily/completion-note-heads-engraver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lily/completion-note-heads-engraver.cc b/lily/completion-note-heads-engraver.cc index 3002d48bb9..2534f6992b 100644 --- a/lily/completion-note-heads-engraver.cc +++ b/lily/completion-note-heads-engraver.cc @@ -243,7 +243,7 @@ Completion_heads_engraver::process_music () { Pitch *p = unsmob_pitch (note_events_[j]->get_property ("pitch")); Pitch *p_last - = unsmob_pitch (tie_note_candidate_events_[j]->get_property ("pitch")); + = unsmob_pitch (tie_note_candidate_events_[i]->get_property ("pitch")); if (p && p_last && *p == *p_last) make_tie (tie_note_candidates_[i], notes_[j]); } -- 2.39.5