]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/simple-spacer.cc
Merge remote-tracking branch 'origin/translation'
[lilypond.git] / lily / simple-spacer.cc
index f3aee719970d079305e12a6e3eed8504f09fe797..2eb545756fd5538f20ce5a47e44c1c7582af3017 100644 (file)
@@ -193,7 +193,7 @@ Simple_spacer::expand_line ()
     inv_hooke += springs_[i].inverse_stretch_strength ();
 
   if (inv_hooke == 0.0) /* avoid division by zero. If springs are infinitely stiff */
-    return 0.0;         /* anyway, then it makes no difference what the force is */
+    inv_hooke = 1e-6;   /* then report a very large stretching force */
 
   assert (cur_len <= line_len_);
   return (line_len_ - cur_len) / inv_hooke + force_;