]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stencil.cc
*** empty log message ***
[lilypond.git] / lily / stencil.cc
index 407fcd0ce53b8bedbffa9a3d301c73c9279abaee..3ebd5b28864f99d2d8a041e441c98fee80aa1ef8 100644 (file)
@@ -87,7 +87,11 @@ Stencil::translate (Offset o)
   Axis a = X_AXIS;
   while (a < NO_AXES)
     {
-      if (isinf (o[a]) || isnan (o[a]))
+      if (isinf (o[a])
+         || isnan (o[a])
+
+         // ugh, hardcoded. 
+         || fabs (o[a]) > 1e6) 
        {
          programming_error (String_convert::form_string ("Improbable offset for stencil: %f staff space", o[a])
                             + "\n"