]> granicus.if.org Git - graphviz/commitdiff
fix #2425
authorJohn Ellson <ellson@research.att.com>
Wed, 26 Feb 2014 15:37:40 +0000 (10:37 -0500)
committerJohn Ellson <ellson@research.att.com>
Wed, 26 Feb 2014 15:37:40 +0000 (10:37 -0500)
lib/common/shapes.c

index 74d0c899b1b8fcb181c16cd2b37d70e0c678c172..9b967c1135cf96bb5f04343c0dfd170210aa3e93 100644 (file)
@@ -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) {