]> granicus.if.org Git - graphviz/commitdiff
better arrow scaling with penwidth - upto about 10
authorellson <devnull@localhost>
Tue, 5 Feb 2008 22:22:38 +0000 (22:22 +0000)
committerellson <devnull@localhost>
Tue, 5 Feb 2008 22:22:38 +0000 (22:22 +0000)
lib/common/emit.c

index 8c9b1ae4dc129517cf74d74f57731d4270b4ffd8..47bef19be0ca742bff6172ff31a66e8e5b8d02dc 100644 (file)
@@ -1274,7 +1274,8 @@ static void emit_edge_graphics(GVJ_t * job, edge_t * e, char** styles)
        scale = late_double(e, E_arrowsz, 1.0, 0.0);
        color = late_string(e, E_color, "");
 
-       scale *= job->obj->penwidth / PENWIDTH_NORMAL;
+       if (job->obj->penwidth > 4)
+           scale *= job->obj->penwidth / 4;
 
        /* need to know how many colors separated by ':' */
        for (p = color; *p; p++)