From: Keith OHara Date: Wed, 9 Jan 2013 09:32:20 +0000 (+0100) Subject: Fix assertion failure (#2983). X-Git-Tag: release/2.17.10-1~9 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=28f5805fe528445779e08ab1ea4bebe714df40ba;p=lilypond.git Fix assertion failure (#2983). --- diff --git a/lily/line-spanner.cc b/lily/line-spanner.cc index f80d58132d..936a956008 100644 --- a/lily/line-spanner.cc +++ b/lily/line-spanner.cc @@ -189,7 +189,9 @@ Line_spanner::calc_bound_info (SCM smob, Direction dir) } else { - y = me->get_bound (dir)->extent (common_y, Y_AXIS).center (); + Interval ii = me->get_bound (dir)->extent (common_y, Y_AXIS); + if (!ii.is_empty()) + y = ii.center (); details = scm_acons (ly_symbol2scm ("common-Y"), common_y->self_scm (), details); }