From 1ce92ec5c984dfc05c3431a9f4185b453b457656 Mon Sep 17 00:00:00 2001 From: Keith OHara Date: Wed, 29 Aug 2012 18:25:27 -0700 Subject: [PATCH] layout.cc: do not draw infinite boxes --- lily/lookup.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lily/lookup.cc b/lily/lookup.cc index 1acb34f783..f37d98c0e3 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 (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]), -- 2.39.2