From: fred Date: Wed, 4 Dec 1996 23:19:11 +0000 (+0000) Subject: lilypond-0.0.14 X-Git-Tag: release/1.5.59~6657 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f9cca145d258220b4eaea7a239e6ac400d655ec3;p=lilypond.git lilypond-0.0.14 --- diff --git a/src/texbeam.cc b/src/texbeam.cc index 01545405c6..87967119b1 100644 --- a/src/texbeam.cc +++ b/src/texbeam.cc @@ -4,12 +4,13 @@ */ - #include +#include #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;