]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix #363.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 4 Jun 2007 02:33:33 +0000 (23:33 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 4 Jun 2007 02:33:33 +0000 (23:33 -0300)
Thinko with argument ordering cause (0 . NEGATIVE) line stencils to be
empty and disappear.

scm/define-markup-commands.scm

index d1f5dd04f81b2642d0ce862dc9948f24a75e8ceb..4cffe4c248279435865597612bd2bc979c73a5d7 100644 (file)
   (let*
       ((th (chain-assoc-get 'thickness props  0.1))
        (x (car dest))
-       (y (cdr dest)))
+       (y (cdr dest))
+       (s (ly:make-stencil
+          `(draw-line
+            ,th
+            0 0
+            ,x ,y)
 
-    (ly:make-stencil
-     `(draw-line
-       ,th
-       0 0
-       ,x ,y)
+          (cons (min x 0) (max x 0))
+          (cons (min y 0) (max y 0)))))
 
-     (cons (min x 0) (min y 0))
-     (cons (max x 0) (max y 0)))))
+    s))
 
 (define-builtin-markup-command (draw-circle layout props radius thickness fill)
   (number? number? boolean?)