]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/timing-translator.cc
2003 -> 2004
[lilypond.git] / lily / timing-translator.cc
index 9676e982650ff99217a38cc5f93e318fa5cdcdbc..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"
@@ -52,6 +52,11 @@ Timing_translator::stop_translation_timestep ()
 void
 Timing_translator::initialize ()
 {
+
+  /*
+    move this to engraver-init.ly? 
+   */
   daddy_trans_->set_property ("timing" , SCM_BOOL_T);  
   daddy_trans_->set_property ("currentBarNumber" , gh_int2scm (1));
 
@@ -112,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;