]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/bezier.cc
* scm/part-combiner.scm: Add proper header.
[lilypond.git] / lily / bezier.cc
index ffe48f240d241ab2fa483774141121d2ef950476..b20de964a7642baf09838669184107a997642ca5 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 1998--2002 Jan Nieuwenhuizen <janneke@gnu.org>
+  (c) 1998--2004 Jan Nieuwenhuizen <janneke@gnu.org>
 */
 
 #include <math.h>
@@ -74,7 +74,9 @@ Bezier::get_other_coordinate (Axis a,  Real x) const
     }
   
   Offset c = curve_point (ts[0]);
-  assert (fabs (c[a] - x) < 1e-8);
+
+  if (fabs (c[a] - x) > 1e-8)
+    programming_error ("Bezier intersection not correct?");
   
   return c[other];
 }