]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 5043/2: Use ly:stencil-outline instead of transparent-stencil
authorDavid Kastrup <dak@gnu.org>
Tue, 24 Jan 2017 20:39:15 +0000 (21:39 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 30 Jan 2017 13:14:39 +0000 (14:14 +0100)
scm/define-markup-commands.scm
scm/stencil.scm

index 07f1538aa275dad7e07737548e2a0feb425f1b52..9543db464b2a6d1c31457d7551a24c7f2ad314c2 100644 (file)
@@ -2333,10 +2333,7 @@ Add padding @var{amount} around @var{arg} in the X@tie{}direction.
   }
 }
 @end lilypond"
-  (let* ((m (interpret-markup layout props arg))
-         (x (ly:stencil-extent m X))
-         (y (ly:stencil-extent m Y)))
-    (ly:make-stencil (list 'transparent-stencil (ly:stencil-expr m)) x y)))
+  (ly:stencil-outline empty-stencil (interpret-markup layout props arg)))
 
 (define-markup-command (pad-to-box layout props x-ext y-ext arg)
   (number-pair? number-pair? markup?)
index f4b5eb8bade977815f06d34d314778eea78b7059..0fa79d4161376d45f61b0bc1232fc3abcbb4eda5 100644 (file)
@@ -238,10 +238,7 @@ the more angular the shape of the parenthesis."
 
 (define-public (make-transparent-box-stencil xext yext)
   "Make a transparent box."
-  (ly:make-stencil
-   (list 'transparent-stencil
-         (ly:stencil-expr (make-filled-box-stencil xext yext)))
-   xext yext))
+  (ly:stencil-outline empty-stencil (make-filled-box-stencil xext yext)))
 
 (define-public (make-filled-box-stencil xext yext)
   "Make a filled box."