From: Joe Neeman Date: Tue, 18 Dec 2007 01:08:38 +0000 (+1100) Subject: Fix a silly mistake with infinitely stiff springs. X-Git-Tag: release/2.11.38-1~28 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=166cd84b1eeb93a9baa33c607fbbfe7931d58e5a;p=lilypond.git Fix a silly mistake with infinitely stiff springs. --- diff --git a/lily/simple-spacer.cc b/lily/simple-spacer.cc index f16e607061..9129361cbd 100644 --- a/lily/simple-spacer.cc +++ b/lily/simple-spacer.cc @@ -84,7 +84,7 @@ Simple_spacer::rod_force (int l, int r, Real dist) Real c = range_stiffness (l, r, dist > d); Real block_stretch = dist - d; - if (isinf (c)) /* take care of the 0*infinity_f case */ + if (isinf (c) && block_stretch == 0) /* take care of the 0*infinity_f case */ return 0; return c * block_stretch; }