]> git.donarmstrong.com Git - lilypond.git/commitdiff
SVG backend: fix thinko in dump-preview routine.
authorPatrick McCarty <pnorcks@gmail.com>
Sun, 14 Feb 2010 05:30:18 +0000 (21:30 -0800)
committerPatrick McCarty <pnorcks@gmail.com>
Sun, 14 Feb 2010 05:34:57 +0000 (21:34 -0800)
The testcases I was working with did not have stencil extents sticking
above the X-axis, so I forgot about flipping the Y value here.

scm/framework-svg.scm

index 7b568b8139f104562361e61d25be328158a45da3..ba918ce3b01ea50c30e71f5716be4b04e93b2ba2 100644 (file)
@@ -95,7 +95,7 @@
         (svg-height (* output-scale device-height)))
 
     (dump (svg-begin svg-width svg-height
-                    left-x top-y device-width device-height))
+                    left-x (- top-y) device-width device-height))
     (ly:outputter-output-scheme outputter
                                `(begin (set! lily-unit-length ,unit-length)
                                        ""))