From: fred Date: Tue, 26 Mar 2002 21:46:42 +0000 (+0000) Subject: lilypond-1.1.27 X-Git-Tag: release/1.5.59~2609 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=673eb2c556a3d9b59c8a5746cc9c34760312fe7c;p=lilypond.git lilypond-1.1.27 --- diff --git a/lily/stem.cc b/lily/stem.cc index 740cb41666..7c780fadd7 100644 --- a/lily/stem.cc +++ b/lily/stem.cc @@ -49,6 +49,16 @@ Stem::Stem () Interval_t Stem::head_positions () const { + /* + Mysterious FreeBSD fix by John Galbraith. Somehow, the empty intervals + trigger FP exceptions on FreeBSD. Fix: do not return infinity + + */ + if (!head_l_arr_.size ()) + { + return Interval_t (100,-100); + } + Interval_t r; for (int i =0; i < head_l_arr_.size (); i++) {