]> git.donarmstrong.com Git - lilypond.git/commitdiff
axis-group-interface: test result of dynamic-cast; issue 4302
authorKeith OHara <k-ohara5a5a@oco.net>
Sun, 21 Jun 2015 16:59:50 +0000 (09:59 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Sun, 28 Jun 2015 05:37:05 +0000 (22:37 -0700)
lily/axis-group-interface.cc

index eabb81adaf4ae5af4a83145728d37ff1b60f9159..59d1d6ba24a1f54297b1fe2f9a4505d9ca634e36 100644 (file)
@@ -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<Spanner *> (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");