From: Mike Solomon Date: Tue, 19 Apr 2011 13:57:23 +0000 (-0400) Subject: Fixes segfaut resulting from the use of the Completion_heads_engraver X-Git-Tag: release/2.15.0-1~93 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=06722df9f31ec6a7b516605418d9598071544edc;p=lilypond.git 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. --- 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]); }