From 35ea18b384897ed01c327359bf3c304a007e8416 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Thu, 17 May 2007 07:41:30 +1000 Subject: [PATCH] Check for empty extent in Bar_line::calc_anchor --- lily/bar-line.cc | 3 +++ 1 file changed, 3 insertions(+) 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"); -- 2.39.2