zero. Fixes beams across line breaks with 1 stem after the break.
2005-08-04 Han-Wen Nienhuys <hanwen@xs4all.nl>
-
+
+ * lily/beam.cc (shift_region_to_valid): prevent division by
+ zero. Fixes beams across line breaks with 1 stem after the break.
+
+ * VERSION: release 2.6.3
+
* lily/auto-beam-engraver.cc (derived_mark): new method. Yes. We
have to protect even those unlikely-to-be-corrupted data members.
Real dy = pos[RIGHT] - pos[LEFT];
Real y = pos[LEFT];
- Real slope = dy / dx;
+ Real slope = dx ? dy / dx : 0.0;
/*
Shift the positions so that we have a chance of finding good