From c861dc08aa345db30bd0c982ccb7a8eff55d789f Mon Sep 17 00:00:00 2001 From: John Ellson Date: Wed, 26 Feb 2014 10:37:40 -0500 Subject: [PATCH] fix #2425 --- lib/common/shapes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.40.0