From 2cd2b75e0e31d89c8c891e4e746c4f300b55019f Mon Sep 17 00:00:00 2001 From: Keith OHara Date: Sun, 21 Jun 2015 09:59:50 -0700 Subject: [PATCH] axis-group-interface: test result of dynamic-cast; issue 4302 --- lily/axis-group-interface.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lily/axis-group-interface.cc b/lily/axis-group-interface.cc index eabb81adaf..59d1d6ba24 100644 --- a/lily/axis-group-interface.cc +++ b/lily/axis-group-interface.cc @@ -150,6 +150,8 @@ Interval Axis_group_interface::part_of_line_pure_height (Grob *me, bool begin, int start, int end) { Spanner *sp = dynamic_cast (me); + if (!sp) + return Interval (0, 0); SCM cache_symbol = begin ? ly_symbol2scm ("begin-of-line-pure-height") : ly_symbol2scm ("rest-of-line-pure-height"); -- 2.39.5