From 934845dc3a4abf08e4bbb74b447c14d90da31ab7 Mon Sep 17 00:00:00 2001 From: erg Date: Sat, 21 Aug 2010 19:28:07 +0000 Subject: [PATCH] Avoid sqrt of negative with label is bigger than fixed size --- 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 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 -- 2.50.1