]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #268 (1)
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 29 May 2008 02:48:38 +0000 (23:48 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 29 May 2008 02:48:38 +0000 (23:48 -0300)
Include thickness in \draw-circle extents.

scm/stencil.scm

index 536425b9c680ce5a44b0c7bcbe9f8924d94142fd..fb46ef7251cf7eef4733eeff09711ced4da1b44a 100644 (file)
 
 (define-public (make-circle-stencil radius thickness fill)
   "Make a circle of radius @var{radius} and thickness @var{thickness}"
+  (let*
+      ((out-radius (+ radius (/ thickness 2.0))))
+    
   (ly:make-stencil
    (list 'circle radius thickness fill) 
-   (cons (- radius) radius)
-   (cons (- radius) radius)))
+   (cons (- out-radius) out-radius)
+   (cons (- out-radius) out-radius))))
 
 (define-public (box-grob-stencil grob)
   "Make a box of exactly the extents of the grob.  The box precisely