From: Joe Neeman Date: Wed, 16 May 2007 21:41:30 +0000 (+1000) Subject: Check for empty extent in Bar_line::calc_anchor X-Git-Tag: release/2.11.24-1~6^2^2 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=35ea18b384897ed01c327359bf3c304a007e8416;p=lilypond.git Check for empty extent in Bar_line::calc_anchor --- diff --git a/lily/bar-line.cc b/lily/bar-line.cc index 7a1e92de37..48b9c4715d 100644 --- a/lily/bar-line.cc +++ b/lily/bar-line.cc @@ -250,6 +250,9 @@ Bar_line::calc_anchor (SCM smob) a repeat bar, in which case we put the anchor in the center of the barline without the dots. */ Interval ext = me->extent (me, X_AXIS); + if (ext.is_empty ()) + return scm_from_double (0); + Real anchor = ext.center (); Stencil dot = Font_interface::get_default_font (me)->find_by_name ("dots.dot");