From: erg Date: Sat, 21 Aug 2010 19:28:07 +0000 (+0000) Subject: Avoid sqrt of negative with label is bigger than fixed size X-Git-Tag: LAST_LIBGRAPH~32^2~1221 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=934845dc3a4abf08e4bbb74b447c14d90da31ab7;p=graphviz Avoid sqrt of negative with label is bigger than fixed size --- diff --git a/lib/common/shapes.c b/lib/common/shapes.c index a7203c2f3..f9e8bec04 100644 --- a/lib/common/shapes.c +++ b/lib/common/shapes.c @@ -891,7 +891,7 @@ static void poly_init(node_t * n) } /* Compute space available for label. Provides the justification borders */ - if (!mapbool(late_string(n, N_nojustify, "false"))) { + if (!mapbool(late_string(n, N_nojustify, "false")) && (dimen.y < bb.y)) { if (isBox) temp = bb.x; else