From 673eb2c556a3d9b59c8a5746cc9c34760312fe7c Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2002 21:46:42 +0000 Subject: [PATCH] lilypond-1.1.27 --- lily/stem.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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++) { -- 2.39.5