]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/stencil.scm
Enable separation-item skyline spacing and fix performance bug.
[lilypond.git] / scm / stencil.scm
index f39328984ba3c2c64f646cd61dba1358a5e8809d..b2d425e6ead5c7061d7e327c0d08934b9a92dbe4 100644 (file)
@@ -100,9 +100,16 @@ encloses the contents.
         (y-ext (ly:stencil-extent stencil 1))
         (diameter (max (- (cdr x-ext) (car x-ext))
                        (- (cdr y-ext) (car y-ext))))
-        (radius (+ (/ diameter 2) padding thickness)))
+        (radius (+ (/ diameter 2) padding thickness))
+        (circle (make-circle-stencil radius thickness #f)))
+
     (ly:stencil-add
-     (centered-stencil stencil) (make-circle-stencil radius thickness #f))))
+     stencil
+     (ly:stencil-translate circle
+                          (cons
+                           (interval-center x-ext)
+                           (interval-center y-ext))))))
+
 
 (define-public (fontify-text font-metric text)
   "Set TEXT with font FONT-METRIC, returning a stencil."