]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/spaceable-grob.cc
''
[lilypond.git] / lily / spaceable-grob.cc
index e19252783ed0a87935df56d22b1da1eb82bef565..bb6afc11e6721cbceed36953f7b7be0ea5933a24 100644 (file)
@@ -46,7 +46,9 @@ Spaceable_grob::add_spring (Grob*me, Grob * p, Real d, Real strength, bool expan
 {
   if (d < 0.0 || strength <= 0.0)
     {
-      programming_error ("Adding reverse spring!");
+      programming_error ("Adding reverse spring! Setting to unit spring");
+      d = 1.0;
+      strength = 1.0;
     }
   
 #ifndef NDEBUG