]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.14
authorfred <fred>
Wed, 4 Dec 1996 23:19:11 +0000 (23:19 +0000)
committerfred <fred>
Wed, 4 Dec 1996 23:19:11 +0000 (23:19 +0000)
src/texbeam.cc

index 01545405c6f0c18599cd9bed83ee894a6f52671b..87967119b1a098e2469b299a74a90f0a2ed059e6 100644 (file)
@@ -4,12 +4,13 @@
   
   */
 
-  #include <math.h>
+#include <math.h>
 #include "symbol.hh"
 #include "molecule.hh"
 #include "tex.hh"
 #include "symtable.hh"
 #include "dimen.hh"
+#include "debug.hh"
 #include "lookup.hh"
 
 Symbol
@@ -32,7 +33,11 @@ Lookup::beam_element(int sidx, int widx, Real slope)
 static int
 slope_index(Real &s)
 {
-    assert(ABS(s) < 0.45);
+    if (ABS(s) > 0.5) {
+       WARN << "beam steeper than 0.5";
+       s = sgn(s) * 0.5;
+    }
+
     int i = int(rint(s *  20.0));
 
     s = i/20.0;