From: David Kastrup Date: Tue, 7 Aug 2012 23:52:09 +0000 (+0200) Subject: Issue 2720: Crash with incorrect parallel input X-Git-Tag: release/2.15.95-1~13 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=676a205f57aa27c1725924e3614796282fdbb77f;p=lilypond.git Issue 2720: Crash with incorrect parallel input Don't assume that all heads of a note column have dots if the first one has. --- diff --git a/lily/note-collision.cc b/lily/note-collision.cc index b6185e4458..e1c196650c 100644 --- a/lily/note-collision.cc +++ b/lily/note-collision.cc @@ -353,8 +353,8 @@ check_meshing_chords (Grob *me, Grob *stem = unsmob_grob (head_down->get_object ("stem")); extract_grob_set (stem, "note-heads", heads); for (vsize i = 0; i < heads.size (); i++) - unsmob_grob (heads[i]->get_object ("dot")) - ->set_property ("direction", scm_from_int (dir)); + if (Grob *dot = unsmob_grob (heads[i]->get_object ("dot"))) + dot->set_property ("direction", scm_from_int (dir)); } }