From 676a205f57aa27c1725924e3614796282fdbb77f Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Wed, 8 Aug 2012 01:52:09 +0200 Subject: [PATCH] Issue 2720: Crash with incorrect parallel input Don't assume that all heads of a note column have dots if the first one has. --- lily/note-collision.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } } -- 2.39.5