]> git.donarmstrong.com Git - lilypond.git/commitdiff
announce_end for glissando.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 6 Jan 2007 18:58:03 +0000 (19:58 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 6 Jan 2007 18:58:03 +0000 (19:58 +0100)
lily/glissando-engraver.cc

index 71a75d8804d372a9d54fe7641c6eb394ab831961..a6888b827c14770003b5919ca6fd0b690a06a303 100644 (file)
@@ -13,6 +13,7 @@
 #include "spanner.hh"
 #include "stream-event.hh"
 #include "warn.hh"
+#include "item.hh"
 
 #include "translator.icc"
 
@@ -66,15 +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_)