From: Valentin Villenave Date: Mon, 14 Jan 2008 00:37:47 +0000 (+0100) Subject: Revert "second patch from Joe: fix a silly mistake with infinite stiff springs" X-Git-Tag: release/2.11.38-1~83 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=3d5bc77e51b1aac68883361122c4080ad6a45daf;p=lilypond.git Revert "second patch from Joe: fix a silly mistake with infinite stiff springs" This reverts commit c2b8039d1d227a1d20b7a9a3fb04d8df8e40de19. Signed-off-by: Valentin Villenave --- diff --git a/lily/simple-spacer.cc b/lily/simple-spacer.cc index 9129361cbd..f16e607061 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) && block_stretch == 0) /* take care of the 0*infinity_f case */ + if (isinf (c)) /* take care of the 0*infinity_f case */ return 0; return c * block_stretch; }