]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/molecule.scm
release: 1.5.46
[lilypond.git] / scm / molecule.scm
index 1d3c58d027d7e6eb2d20d8ccb2ad7c1c32a8f4c3..e13bbc4893d901e77eafe713bf4f7e263d130066 100644 (file)
 
 
 (define (box-grob-molecule grob)
-  "Make a box of exactly the extents of the grob."
+  "Make a box of exactly the extents of the grob.  The box precisely
+encloses the contents.
+"
   (let* ((xext (ly-get-extent grob grob 0))
         (yext (ly-get-extent grob grob 1))
         (mol (ly-make-molecule '() '(10000 . -10000) '(10000 . -10000)))
         (thick 0.1)
         )
-    (display "hoi")
-    (set! mol (ly-add-molecule mol (box-molecule xext (cons (car yext) (+ (car yext) thick)))))
-    (set! mol (ly-add-molecule mol (box-molecule xext (cons (- (cdr yext) thick) (cdr yext)))))
-    (set! mol (ly-add-molecule mol (box-molecule (cons (car xext) (+ (car xext) thick)) yext)))
-    (set! mol (ly-add-molecule mol (box-molecule (cons (- (cdr xext) thick) (cdr xext)) yext)))
+
+    (set! mol (ly-add-molecule mol (box-molecule xext (cons (- (car yext) thick) (car yext) ))))
+    (set! mol (ly-add-molecule mol (box-molecule xext (cons  (cdr yext) (+ (cdr yext) thick) ))))
+    (set! mol (ly-add-molecule mol (box-molecule (cons (cdr xext) (+ (cdr xext) thick)) yext)))
+    (set! mol (ly-add-molecule mol (box-molecule (cons (- (car xext) thick) (car xext)) yext)))
     mol
   ))