]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/global-translator.cc
''
[lilypond.git] / lily / global-translator.cc
index e7fe6790d7eb86656a006479c4370194c7311772..a7fb3e0c3c0f5f946e1e8f19a3ddb9bf600c7e17 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #include "debug.hh"
@@ -83,6 +83,10 @@ Global_translator::finish ()
 void
 Global_translator::run_iterator_on_me (Music_iterator * iter)
 {
+  if (iter-> ok ())
+    prev_mom_ = now_mom_ = iter->pending_moment ();
+
+  bool first = true;
   while (iter->ok () || moments_left_i ())
     {
       Moment w;
@@ -90,10 +94,19 @@ Global_translator::run_iterator_on_me (Music_iterator * iter)
       if (iter->ok ())
        {
          w = iter->pending_moment ();
-      
        }
 
       w = sneaky_insert_extra_moment (w);
+
+      //      cout << "Proccing " << w << endl;
+
+      
+      if (first)
+       {
+         first = false;
+         set_property ("measurePosition", w.smobbed_copy ());
+       }
+
       prepare (w);
       if (iter->ok ())
        iter->process (w);