]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/glissando-engraver.cc
optimise skylines.
[lilypond.git] / lily / glissando-engraver.cc
index 6368e05a09554f9549c501431ae6e9f4eed873ee..a6888b827c14770003b5919ca6fd0b690a06a303 100644 (file)
@@ -7,11 +7,13 @@
 */
 
 #include "engraver.hh"
+
 #include "international.hh"
 #include "rhythmic-head.hh"
 #include "spanner.hh"
 #include "stream-event.hh"
 #include "warn.hh"
+#include "item.hh"
 
 #include "translator.icc"
 
@@ -65,14 +67,19 @@ Glissando_engraver::acknowledge_rhythmic_head (Grob_info info)
     line_->set_bound (LEFT, g);
 
   if (last_line_)
-    last_line_->set_bound (RIGHT, g);
+    {
+      last_line_->set_bound (RIGHT, g);
+      announce_end_grob (last_line_, g->self_scm ());
+    }      
 }
 
 void
 Glissando_engraver::stop_translation_timestep ()
 {
   if (last_line_ && last_line_->get_bound (RIGHT))
-    last_line_ = 0;
+    {
+      last_line_ = 0;
+    }
   if (line_)
     {
       if (last_line_)
@@ -104,6 +111,5 @@ ADD_ACKNOWLEDGER (Glissando_engraver, rhythmic_head);
 ADD_TRANSLATOR (Glissando_engraver,
                /* doc */ "Engrave a glissandi",
                /* create */ "Glissando",
-               /* accept */ "glissando-event",
                /* read */ "followVoice",
                /* write */ "");