]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 2720: Crash with incorrect parallel input
authorDavid Kastrup <dak@gnu.org>
Tue, 7 Aug 2012 23:52:09 +0000 (01:52 +0200)
committerDavid Kastrup <dak@gnu.org>
Wed, 8 Aug 2012 00:15:58 +0000 (02:15 +0200)
Don't assume that all heads of a note column have dots if the first one has.

lily/note-collision.cc

index b6185e4458deced9394837376ee02d515cfbea57..e1c196650c55148968eea9e7fa95acafc0e1e9b8 100644 (file)
@@ -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));
         }
     }