]> git.donarmstrong.com Git - lilypond.git/commitdiff
(process_music): always
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 20 Oct 2006 14:22:49 +0000 (14:22 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 20 Oct 2006 14:22:49 +0000 (14:22 +0000)
clone input events; otherwise we may overwrite input 'duration property.

ChangeLog
THANKS
lily/completion-note-heads-engraver.cc

index 462fdc12269ef94388876819d6ee7ea88b19c028..ae6a32a78a8b1d0c137d682f3d956fe228ad4144 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-10-20  Han-Wen Nienhuys  <hanwen@lilypond.org>
 
+       * 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 1ee3d5d13e5e677666c46fcc5106240746413e73..971565329a804856a18a2100ced80416aefed066 100644 (file)
--- 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
index cfe57862d4f5bb01628454974bdfb22940b623e1..66e31aaf52da8b541c31160f86930a0f25154dc8 100644 (file)
@@ -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];