]> git.donarmstrong.com Git - lilypond.git/commitdiff
(get_subpath_i): Don't use `round' but `floor' since the former
authorWerner Lemberg <wl@gnu.org>
Fri, 20 Apr 2007 17:05:04 +0000 (19:05 +0200)
committerWerner Lemberg <wl@gnu.org>
Fri, 20 Apr 2007 17:05:04 +0000 (19:05 +0200)
is a no-op in metapost.

mf/parmesan-macros.mf

index b9bbb5ebf2122e342ad54b7e3e15ecd8adc6d679..6fd040c53168d10077b981311a993cea3261a83d 100644 (file)
@@ -106,9 +106,9 @@ def get_subpath_i (expr curve, dir_in, dir_out, offset) =
                t_out := t_out + length curve;
        fi;
 
-       (subpath (round t_in, round t_out) of curve) shifted offset
+       (subpath (floor (t_in + 0.5), floor (t_out + 0.5)) of curve)
+         shifted offset
        endgroup
 enddef;
 
-
 % EOF