]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix a silly mistake with infinitely stiff springs.
authorJoe Neeman <joeneeman@gmail.com>
Tue, 18 Dec 2007 01:08:38 +0000 (12:08 +1100)
committerJoe Neeman <joeneeman@gmail.com>
Wed, 23 Jan 2008 08:36:49 +0000 (09:36 +0100)
lily/simple-spacer.cc

index f16e6070610152750213562cca1cbbd4bd15b9f3..9129361cbd86702f3524bedec164a49aac27eee9 100644 (file)
@@ -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;
 }