]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/timing-translator.cc
2003 -> 2004
[lilypond.git] / lily / timing-translator.cc
index 3d83282c6c8275fbf6cf6f0563fd3ce4f38023ea..64be59c4f838c902c1df87c1efe821baee320204 100644 (file)
@@ -4,7 +4,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "warn.hh"
@@ -117,6 +117,11 @@ Timing_translator::start_translation_timestep ()
       programming_error ("Moving backwards in time");
       dt = 0;
     }
+  else if (dt.main_part_.is_infinity ())
+    {
+      programming_error ("Moving infinitely to future");
+      dt = 0;
+    }
   
   if (!dt.to_bool ())
     return;