]> git.donarmstrong.com Git - lilypond.git/commitdiff
variable fix
authorJanek Warchol <lemniskata.bernoullego@gmail.com>
Tue, 13 Sep 2011 15:19:58 +0000 (17:19 +0200)
committerJanek Warchol <lemniskata.bernoullego@gmail.com>
Sat, 17 Sep 2011 19:55:51 +0000 (21:55 +0200)
mf/feta-noteheads.mf

index 8fee28083196dc04663c78dd38afb1697742b8e0..60c51783daf269d51d3300140d0cfbbbf1ea8666 100644 (file)
@@ -118,9 +118,11 @@ def draw_longa (expr up) =
                quanted_line_length := max (0.77, line_length);
        fi;
 
+       final_line_length := quanted_line_length * staff_space; 
+
        if up:
-               bot y1 = -quanted_line_length * staff_space;
-               top y2 = quanted_line_length * staff_space;
+               bot y1 = -final_line_length;
+               top y2 = final_line_length;
                rt x1 - fudge = 0;
                x1 = x2;
 
@@ -130,14 +132,14 @@ def draw_longa (expr up) =
                y3 = y1;
        else:
                bot y1 = -d - 3.0 staff_space;
-               top y2 = quanted_line_length * staff_space;
+               top y2 = final_line_length;
                rt x1 - fudge = 0;
                x1 = x2;
 
                fudge + lft x3 = width;
                x4 = x3;
                y4 = y2;
-               bot y3 = -quanted_line_length * staff_space;
+               bot y3 = -final_line_length;
        fi;
 
        draw_gridline (z1, z2, stemthick);