]> git.donarmstrong.com Git - lilypond.git/commitdiff
PS backend: fix 'path stencil expression
authorPatrick McCarty <pnorcks@gmail.com>
Tue, 28 Jul 2009 23:58:44 +0000 (16:58 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Tue, 28 Jul 2009 23:58:44 +0000 (16:58 -0700)
The absolute commands were not working because the coordinate
system needed to be translated first.

This patch fixes that issue, and it surrounds the entire
expression with gsave...grestore so that the coordinate system
is restored immediately afterward.

scm/output-ps.scm

index 64a22b4677a0e650bd552751154dccbee51aee7f..27a3d8f37803bf9707123e6e5d46d9730f9bb251 100644 (file)
     
     
   (ly:format
-   "1 setlinecap ~a setlinewidth\n~l stroke"
+   "gsave currentpoint translate 1 setlinecap ~a setlinewidth\n~l stroke grestore"
    thickness
-   (convert-path-exps exps) ))
+   (convert-path-exps exps)))