don't warn if fixed width/height too small for image, since we can rescale images...
authorJohn Ellson <ellson@research.att.com>
Fri, 31 Aug 2012 18:08:05 +0000 (14:08 -0400)
committerJohn Ellson <ellson@research.att.com>
Fri, 31 Aug 2012 18:08:05 +0000 (14:08 -0400)
lib/common/shapes.c

index bc0cc1050e7bcc49f4c02c8301d3900161d5c88b..6b01f767c13594a475d8ee81e363542658c6ed80 100644 (file)
@@ -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)));