From 42ecccb1b2e20346ae6a99c690e1a29fae006d4c Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Fri, 16 Jan 2009 09:54:17 -0800 Subject: [PATCH] Fix segfault in Rest_collision_engraver if there is no NoteColumn. --- lily/rest-collision-engraver.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lily/rest-collision-engraver.cc b/lily/rest-collision-engraver.cc index 7156409d51..4720368c90 100644 --- a/lily/rest-collision-engraver.cc +++ b/lily/rest-collision-engraver.cc @@ -10,6 +10,7 @@ #include "duration.hh" #include "engraver.hh" +#include "international.hh" #include "item.hh" #include "moment.hh" #include "note-column.hh" @@ -53,6 +54,11 @@ Rest_collision_engraver::process_acknowledged () if (Rhythmic_head::has_interface (g) && (*m) > now) { Grob *column = g->get_parent (X_AXIS); + if (!column) + { + g->warning (_ ("rhythmic head is not part of a rhythmic column")); + continue; + } // Only include rests that start now. Include notes that started any time. Paper_column *paper_column = dynamic_cast (column)->get_column (); -- 2.39.5