]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/simple-spacer.cc
Shutup warnings about springs of length 0
[lilypond.git] / lily / simple-spacer.cc
index 9200554822b87030d8e0b6c452fd7b3fe5ba859a..3f4e678cd6d4ddf1c60f56ea69cc085eaba4999a 100644 (file)
@@ -274,7 +274,7 @@ bool
 Spring_description::is_sane () const
 {
   return (inverse_hooke_ >= 0)
-    && ideal_ > 0
+    && ideal_ >= 0
     && !isinf (ideal_) && !isnan (ideal_)
     && (inverse_hooke_ == 0.0 || fabs (inverse_hooke_) > 1e-8)
     ;