]> granicus.if.org Git - graphviz/commitdiff
scale arrow by penwidth
authorellson <devnull@localhost>
Tue, 5 Feb 2008 20:59:16 +0000 (20:59 +0000)
committerellson <devnull@localhost>
Tue, 5 Feb 2008 20:59:16 +0000 (20:59 +0000)
lib/common/emit.c

index 94cf8c29245c85eaa3ba550406c4042d261e6ec2..8c9b1ae4dc129517cf74d74f57731d4270b4ffd8 100644 (file)
@@ -1274,6 +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;
+
        /* need to know how many colors separated by ':' */
        for (p = color; *p; p++)
            if (*p == ':')