]> granicus.if.org Git - graphviz/commitdiff
Avoid sqrt of negative with label is bigger than fixed size
authorerg <devnull@localhost>
Sat, 21 Aug 2010 19:28:07 +0000 (19:28 +0000)
committererg <devnull@localhost>
Sat, 21 Aug 2010 19:28:07 +0000 (19:28 +0000)
lib/common/shapes.c

index a7203c2f348f8ab2c320fe23a87b4c1d658ac348..f9e8bec04006d51112aa8b72944435a04542f9df 100644 (file)
@@ -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