From 7865d5d86739bd3cf8cb675892442f9484d4bfd0 Mon Sep 17 00:00:00 2001 From: Keith OHara Date: Sat, 24 Aug 2013 14:48:18 -0700 Subject: [PATCH] accidental.cc: do not crash on missing stencils --- lily/accidental.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lily/accidental.cc b/lily/accidental.cc index 0cf270f52a..ce05dfff72 100644 --- a/lily/accidental.cc +++ b/lily/accidental.cc @@ -83,14 +83,14 @@ Accidental_interface::horizontal_skylines (SCM smob) * We use the more basic get_stencil. */ Stencil *my_stencil = unsmob_stencil (get_stencil (me)); + if (!my_stencil) + return Skyline_pair ().smobbed_copy (); + Skyline_pair *sky = Skyline_pair::unsmob (Stencil::skylines_from_stencil (my_stencil->smobbed_copy (), 0.0, Y_AXIS)); - if (!sky) - return Skyline_pair ().smobbed_copy (); - SCM alist = me->get_property ("glyph-name-alist"); SCM alt = me->get_property ("alteration"); string glyph_name = robust_scm2string (ly_assoc_get (alt, alist, SCM_BOOL_F), -- 2.39.2