]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 1523: Parenthesizing breath marks
authorDavid Kastrup <dak@gnu.org>
Mon, 2 Sep 2013 13:27:57 +0000 (15:27 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 9 Sep 2013 07:37:49 +0000 (09:37 +0200)
Parenthesizing breath marks didn't work as expected.  The parentheses
were next to the breath mark, not around it.

It would appear that just giving ParenthesesItem a non-empty (but
zero) extent is enough to let it be placed correctly.

scm/define-grobs.scm

index 9a0576454ef908b18eddde8eb6dae3d103307bfb..040f3fc2dd54d6adbe899c9f643a1df50c07c9ed 100644 (file)
         (padding . 0.2)
         (stencil . ,parentheses-item::print)
         (stencils . ,parentheses-item::calc-parenthesis-stencils)
+        ;; X-extent needs to be non-empty in order to allow proper
+        ;; horizontal attachment.  ParenthesesItem does not reserve
+        ;; space of its own, however.
+        (X-extent . (0 . 0))
         (meta . ((class . Item)
                  (interfaces . (font-interface
                                 parentheses-interface))))))