]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 3330: bracketify-stencil moves grob's refpoint
authorDavid Kastrup <dak@gnu.org>
Wed, 24 Apr 2013 11:07:55 +0000 (13:07 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 26 May 2013 00:33:03 +0000 (02:33 +0200)
Also fixes parenthesize-stencil.

scm/stencil.scm

index c93dbd16ad1e90eaa891c5dcc51a663cd7ff1780..d7ba2e407901552fbaecd7327eba5b909cae0c10 100644 (file)
@@ -90,7 +90,7 @@ a list of @var{paddings}."
     (set! stil
          (ly:stencil-combine-at-edge stil (other-axis axis) 1 rb padding))
     (set! stil
-         (ly:stencil-combine-at-edge lb (other-axis axis) 1 stil padding))
+         (ly:stencil-combine-at-edge stil (other-axis axis) -1 lb padding))
     stil))
 
 (define (make-parenthesis-stencil
@@ -166,7 +166,7 @@ the more angular the shape of the parenthesis."
              y-extent half-thickness (- width) angularity))
         (rp (make-parenthesis-stencil
              y-extent half-thickness width angularity)))
-    (set! stencil (ly:stencil-combine-at-edge lp X RIGHT stencil padding))
+    (set! stencil (ly:stencil-combine-at-edge stencil X LEFT lp padding))
     (set! stencil (ly:stencil-combine-at-edge stencil X RIGHT rp padding))
     stencil))