From: Keith OHara Date: Thu, 9 Aug 2012 02:42:46 +0000 (-0700) Subject: layout.cc: do not draw empty boxes X-Git-Tag: release/2.17.0-1~41 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2da5a512119ca9dda3a05e1c122daea5b17f9049;p=lilypond.git layout.cc: do not draw empty boxes --- diff --git a/lily/lookup.cc b/lily/lookup.cc index 1acb34f783..e0117c1da1 100644 --- a/lily/lookup.cc +++ b/lily/lookup.cc @@ -174,6 +174,9 @@ Lookup::round_filled_box (Box b, Real blotdiameter) if (b.y ().length () < blotdiameter) blotdiameter = b.y ().length (); + if (b.x ().is_empty () || b.y ().is_empty ()) + return Stencil (b, SCM_EOL); + SCM at = (scm_list_n (ly_symbol2scm ("round-filled-box"), scm_from_double (-b[X_AXIS][LEFT]), scm_from_double (b[X_AXIS][RIGHT]),