]> granicus.if.org Git - graphviz/commitdiff
Stupid, stupid, stupid.
authornorth <devnull@localhost>
Wed, 31 Jan 2007 21:36:28 +0000 (21:36 +0000)
committernorth <devnull@localhost>
Wed, 31 Jan 2007 21:36:28 +0000 (21:36 +0000)
lib/common/emit.c

index 9a8ff0b5c90dea5bffc3620d0bfe443b02e7bd8b..01f0185330904d12d8ed73b1e46f93de94300732 100644 (file)
@@ -1322,7 +1322,7 @@ static void emit_edge_graphics(GVJ_t * job, edge_t * e)
                        default_pencolor(pencolor, DEFAULT_VISITEDPENCOLOR));
            fillcolor = late_nnstring(e, E_visitedfillcolor, DEFAULT_VISITEDFILLCOLOR);
        }
-       if (E_penwidth && agxget(e,E_penwidth->index)) {
+       if (E_penwidth && ((p=agxget(e,E_penwidth->index)) && p[0])) {
            penwidth = late_double(e, E_penwidth, 1.0, 0.0);
            gvrender_set_penwidth(job, penwidth);
        }