From aef95de4d6095b5d8ff4cb78d2f50484d81ec636 Mon Sep 17 00:00:00 2001 From: erg Date: Tue, 8 Jul 2008 19:41:06 +0000 Subject: [PATCH] Avoid error message if image="" --- lib/common/shapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/shapes.c b/lib/common/shapes.c index 32f0883ee..72f41fb22 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -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, -- 2.40.0