]> git.donarmstrong.com Git - lilypond.git/commitdiff
layout.cc: do not draw empty boxes
authorKeith OHara <k-ohara5a5a@oco.net>
Thu, 9 Aug 2012 02:42:46 +0000 (19:42 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Wed, 15 Aug 2012 06:41:30 +0000 (23:41 -0700)
lily/lookup.cc

index 1acb34f783cf83dab6b0cc503f8d55fb47852a0e..e0117c1da197fd42c14a82a51c20c1f83008c5ec 100644 (file)
@@ -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]),