From: John Ellson Date: Fri, 31 Aug 2012 18:08:05 +0000 (-0400) Subject: don't warn if fixed width/height too small for image, since we can rescale images... X-Git-Tag: LAST_LIBGRAPH~32^2~322 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dce71a00169c50ebb400701630c6df3a011907fd;p=graphviz don't warn if fixed width/height too small for image, since we can rescale images to fit --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index bc0cc1050..6b01f767c 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -1074,7 +1074,8 @@ static void poly_init(node_t * n) /* increase node size to width/height if needed */ if (mapbool(late_string(n, N_fixed, "false"))) { - if ((width < bb.x) || (height < bb.y)) + /* check only label, as images we can scale to fit */ + if ((width < ND_label(n)->dimen.x) || (height < ND_label(n)->dimen.y)) agerr(AGWARN, "node '%s', graph '%s' size too small for label\n", agnameof(n), agnameof(agraphof(n)));