From: John Ellson Date: Wed, 26 Feb 2014 15:37:40 +0000 (-0500) Subject: fix #2425 X-Git-Tag: 2.38.0~42^2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c861dc08aa345db30bd0c982ccb7a8eff55d789f;p=graphviz fix #2425 --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 74d0c899b..9b967c113 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -2886,9 +2886,9 @@ static void poly_gencode(GVJ_t * job, node_t * n) if (ND_shape(n)->usershape) { name = ND_shape(n)->name; if (streq(name, "custom")) - name = agget(n, "shapefile"); - usershape_p = TRUE; - } else if ((name = agget(n, "image"))) { + if ((name = agget(n, "shapefile")) && name[0]) + usershape_p = TRUE; + } else if ((name = agget(n, "image")) && name[0]) { usershape_p = TRUE; } if (usershape_p) {