From: Joe Neeman Date: Sat, 9 Feb 2008 17:46:57 +0000 (+0100) Subject: Fix 574. X-Git-Tag: release/2.11.40-1~3^2~24 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=8608a7f5dfeb7d03f267e5f086251d90b632baba;p=lilypond.git Fix 574. Make a BarLine's bar-extent empty when there is no staff (so it matches the Y-extent). --- diff --git a/lily/bar-line.cc b/lily/bar-line.cc index 800c138c93..a0fa5587b4 100644 --- a/lily/bar-line.cc +++ b/lily/bar-line.cc @@ -24,7 +24,8 @@ Bar_line::calc_bar_extent (SCM smob) SCM size = me->get_property ("bar-size"); - if (!scm_is_number (size)) + if (!scm_is_number (size) + || !Staff_symbol_referencer::get_staff_symbol (me)) return ly_interval2scm (Interval ()); Real h = scm_to_double (size);