]> git.donarmstrong.com Git - lilypond.git/commitdiff
make sure that right bound of slur exists.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 24 Dec 2006 18:42:07 +0000 (19:42 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 24 Dec 2006 18:42:07 +0000 (19:42 +0100)
lily/slur-engraver.cc

index 28c7544d7d0261b5cdf8cd5411776e8d49321bf5..64853b8284bbaa33389b8a9e0eed2c99bee9205b 100644 (file)
@@ -209,7 +209,12 @@ Slur_engraver::stop_translation_timestep ()
   
   
   for (vsize i = 0; i < end_slurs_.size (); i++)
-    announce_end_grob (end_slurs_[i], SCM_EOL);
+    {
+      Spanner * s = dynamic_cast<Spanner*> (end_slurs_[i]);
+      if (!s->get_bound (RIGHT))
+       s->set_bound (RIGHT, unsmob_grob (get_property ("currentMusicalColumn")));
+      announce_end_grob (s, SCM_EOL);
+    }
   end_slurs_.clear ();
   events_[START] = events_[STOP] = 0;
 }