]> git.donarmstrong.com Git - lilypond.git/commitdiff
layout.cc: do not draw infinite boxes
authorKeith OHara <k-ohara5a5a@oco.net>
Thu, 30 Aug 2012 01:25:27 +0000 (18:25 -0700)
committerKeith OHara <k-ohara5a5a@oco.net>
Mon, 3 Sep 2012 05:39:24 +0000 (22:39 -0700)
lily/lookup.cc

index 1acb34f783cf83dab6b0cc503f8d55fb47852a0e..f37d98c0e3d9e83a8bccb49d227e7b22ae295afc 100644 (file)
@@ -174,6 +174,9 @@ Lookup::round_filled_box (Box b, Real blotdiameter)
   if (b.y ().length () < blotdiameter)
     blotdiameter = b.y ().length ();
 
+  if (isinf (b.x ().delta ()) || isinf (b.y ().delta ()))
+    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]),