]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix X-translation of \fill-line markup.
authorAlexander Kobel <news@a-kobel.de>
Fri, 22 Jan 2010 02:34:14 +0000 (18:34 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 22 Jan 2010 02:40:32 +0000 (18:40 -0800)
fill-line currently only considers the extents of the stencils, not
their position relative to the X-origin; with the patch, they are
shifted according to the first stencil argument.

scm/define-markup-commands.scm

index 4a579444649ed902efa8f3cbd9e4ce339a1b4ff6..12dafee9cd17636d804aae78b7c899e1011e207c 100644 (file)
@@ -850,8 +850,11 @@ If there are no arguments, return an empty stencil.
 
     (if (null? (remove ly:stencil-empty? orig-stencils))
        empty-stencil
-       (stack-stencils-padding-list X
-                                    RIGHT fill-space-normal line-stencils))))
+       (ly:stencil-translate-axis
+         (stack-stencils-padding-list X
+                                      RIGHT fill-space-normal line-stencils)
+         (- (car (ly:stencil-extent (car stencils) X)))
+         X))))
 
 (define-markup-command (line layout props args)
   (markup-list?)