From 0a79776f9fd351026b6343243462dba1b0992cd7 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 20 Oct 2006 14:22:49 +0000 Subject: [PATCH] (process_music): always clone input events; otherwise we may overwrite input 'duration property. --- ChangeLog | 3 +++ THANKS | 1 + lily/completion-note-heads-engraver.cc | 10 +++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 462fdc1226..ae6a32a78a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-20 Han-Wen Nienhuys + * lily/completion-note-heads-engraver.cc (process_music): always + clone input events; otherwise we may overwrite input 'duration property. + * lily/general-scheme.cc (LY_DEFINE): explicit cast in case scm_t_int32 != int diff --git a/THANKS b/THANKS index 1ee3d5d13e..971565329a 100644 --- a/THANKS +++ b/THANKS @@ -94,6 +94,7 @@ Thies Albrecht Trent Johnston Trevor Bača Vaclav Smilauer +Vicente Solsona Dellá Werner Lemberg Will Oram Zoltan V. Laszlo diff --git a/lily/completion-note-heads-engraver.cc b/lily/completion-note-heads-engraver.cc index cfe57862d4..66e31aaf52 100644 --- a/lily/completion-note-heads-engraver.cc +++ b/lily/completion-note-heads-engraver.cc @@ -193,7 +193,15 @@ Completion_heads_engraver::process_music () scratch_note_events_.push_back (m); } } - + else + { + for (vsize i = 0; i < note_events_.size (); i++) + { + Stream_event *c = note_events_[i]->clone (); + scratch_note_events_.push_back (c); + } + } + for (vsize i = 0; left_to_do_ && i < note_events_.size (); i++) { Stream_event *event = note_events_[i]; -- 2.39.5