]> granicus.if.org Git - graphviz/commitdiff
Avoid error message if image=""
authorerg <devnull@localhost>
Tue, 8 Jul 2008 19:41:06 +0000 (19:41 +0000)
committererg <devnull@localhost>
Tue, 8 Jul 2008 19:41:06 +0000 (19:41 +0000)
lib/common/shapes.c

index 32f0883eec208b86f6cffb250a329d5e7aaa1d45..72f41fb22d4411f644789ca04d98b8b2bb3e0fbf 100644 (file)
@@ -792,7 +792,7 @@ static void poly_init(node_t * n)
            }
        }
     }
-    else  if ((sfile = agget(n, "image"))) {
+    else  if ((sfile = agget(n, "image")) && (*sfile != '\0')) {
        imagesize = gvusershape_size(n->graph, sfile);
        if ((imagesize.x == -1) && (imagesize.y == -1)) {
             agerr(AGWARN,