]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/global-context.cc
* lily/global-context.cc (run_iterator_on_me): fix grace note
[lilypond.git] / lily / global-context.cc
index 5c273a1893679a76d6565f4455e06dd187d1adb2..53d60a549d90766aca4791a147cee7c4d94a17df 100644 (file)
@@ -127,6 +127,16 @@ Global_context::run_iterator_on_me (Music_iterator * iter)
       if (w.main_part_.is_infinity ())
        break ;
       
+      if (first)
+        {
+         /*
+           Need this to get grace notes at start of a piece correct.
+          */
+          first = false;
+          set_property ("measurePosition", w.smobbed_copy ());
+        }
+
+
       prepare (w);
 
       if (iter->ok ())
@@ -148,7 +158,6 @@ Global_context::run_iterator_on_me (Music_iterator * iter)
        }
       
       one_time_step ();
-      first = false;
     }
 }