projects
/
graphviz
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d8396b
)
don't warn if fixed width/height too small for image, since we can rescale images...
author
John Ellson
<ellson@research.att.com>
Fri, 31 Aug 2012 18:08:05 +0000
(14:08 -0400)
committer
John Ellson
<ellson@research.att.com>
Fri, 31 Aug 2012 18:08:05 +0000
(14:08 -0400)
lib/common/shapes.c
patch
|
blob
|
history
diff --git
a/lib/common/shapes.c
b/lib/common/shapes.c
index bc0cc1050e7bcc49f4c02c8301d3900161d5c88b..6b01f767c13594a475d8ee81e363542658c6ed80 100644
(file)
--- 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)));