]> git.donarmstrong.com Git - lilypond.git/commitdiff
announce chord tremolo beam end too.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 6 Jan 2007 19:56:04 +0000 (20:56 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 6 Jan 2007 19:56:04 +0000 (20:56 +0100)
lily/chord-tremolo-engraver.cc

index bd380facc7da61a06524a6c13724737e1018e383..1198a99dace907db0d467165497c7cf16f46a404 100644 (file)
@@ -108,6 +108,7 @@ Chord_tremolo_engraver::finalize ()
   if (beam_)
     {
       repeat_->origin ()->warning (_ ("unterminated chord tremolo"));
+      announce_end_grob (beam_, SCM_EOL);
       beam_->suicide ();
     }
 }
@@ -125,8 +126,11 @@ Chord_tremolo_engraver::acknowledge_stem (Grob_info info)
        beam_->set_property ("gap-count", scm_from_int (flags_ - expected_beam_count_));
 
       if (beam_dir_ == RIGHT)
-        beam_dir_ = LEFT;
-
+       {
+         beam_dir_ = LEFT;
+         announce_end_grob (beam_, s->self_scm ());
+       }
+      
       if (info.ultimate_event_cause ()->in_event_class ("rhythmic-event"))
        Beam::add_stem (beam_, s);
       else