]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/define-markup-commands.scm
Issue 5043/2: Use ly:stencil-outline instead of transparent-stencil
[lilypond.git] / scm / define-markup-commands.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?)