]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/musical-request.cc
* Documentation/windows/zlily-profile.sh:
[lilypond.git] / lily / musical-request.cc
index 147fce3fa2cbce1143d66df4cda8d34a3a8bc1ae..6138a8daf90c56c0e59588b139e972eccc157cd3 100644 (file)
@@ -35,11 +35,13 @@ Moment
 Rhythmic_req::length_mom () const
 {
   Duration *d = unsmob_duration (get_mus_property ("duration"));
-  if (!d){
-    Moment m ;
-    programming_error("Rhythmic_req has no duration");
-    return m;
-  }
+  if (!d)
+    {
+      Moment m ;
+      //programming_error("Rhythmic_req has no duration");
+      origin ()->warning ("programming error: Rhythmic_req has no duration");
+      return m;
+    }
   return d->length_mom ();
 }