]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3165: MultiMeasureTextEvent created by i.e. R1-1 did not take tweaks
authorDavid Kastrup <dak@gnu.org>
Mon, 11 Feb 2013 10:17:01 +0000 (11:17 +0100)
committerDavid Kastrup <dak@gnu.org>
Sun, 17 Feb 2013 03:19:23 +0000 (04:19 +0100)
This just copies the whole event data including tweaks from the given
script event to the multimeasure text event.

scm/ly-syntax-constructors.scm

index 9cbec5fc4f55f61c6b28f17e558109da84e0a4b4..4cbf9a67aa9a5b0e6775d415a3db36f8cadeaf29 100644 (file)
 into a @code{MultiMeasureTextEvent}."
 
   (if (memq 'script-event (ly:music-property music 'types))
-      (let* ((location (ly:music-property music 'origin))
-            (dir (ly:music-property music 'direction))
-            (tags (ly:music-property music 'tags))
-            (p (make-music 'MultiMeasureTextEvent
-                           'origin location
-                           'tags tags
-                           'text (ly:music-property music 'text))))
-       (if (ly:dir? dir)
-           (set! (ly:music-property p 'direction) dir))
-       p)
+      (apply make-music 'MultiMeasureTextEvent
+            (flatten-alist (ly:music-mutable-properties music)))
       music))
 
 (define-ly-syntax (multi-measure-rest parser location duration articulations)