]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix thinko: corner case bbox handling should also be rounded to integers.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 4 Aug 2008 01:47:04 +0000 (22:47 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 4 Aug 2008 01:47:04 +0000 (22:47 -0300)
scm/framework-ps.scm

index 5e26c1d4b7d916b261b11615d1cf3024ec9c4f77..c7214da3c597d25c5dcf49210a1f90efe829ab1c 100644 (file)
                               (if (or (nan? x) (inf? x)) 0.0 x)))
           (directed-round (lambda (x rounder)
                             (inexact->exact
-                             (rounder (/ (* x scale) (ly:bp 1)))))))
+                             (rounder (/ (* (strip-non-number x) scale)
+                                         (ly:bp 1)))))))
       (list (directed-round (car box) floor)
            (directed-round (cadr box) floor)
-           (max (1+ (car box)) (directed-round (caddr box) ceiling))
-           (max (1+ (cadr box)) (directed-round (cadddr box) ceiling))
+           (directed-round (max (1+ (car box)) (caddr box)) ceiling)
+           (directed-round (max (1+ (cadr box)) (cadddr box)) ceiling)
          )))
 
   (let* ((outputter (ly:make-paper-outputter