]> granicus.if.org Git - graphviz/commitdiff
fix problem with text height estimate (rtest/graphs/big.dot)
authorellson <devnull@localhost>
Thu, 17 Aug 2006 13:48:29 +0000 (13:48 +0000)
committerellson <devnull@localhost>
Thu, 17 Aug 2006 13:48:29 +0000 (13:48 +0000)
lib/common/labels.c

index 52a4b409c40c25b7190ec6384b5d76d433152730..0af682e475dce19c621840cea17c432455e57773 100644 (file)
@@ -35,7 +35,7 @@ static void storeline(graph_t *g, textlabel_t *lp, char *line, char terminator)
     if (lp->dimen.x < size.x)
        lp->dimen.x = size.x;
     /* recalculate total height */
-    lp->dimen.y = lp->u.txt.nparas * (int) (size.y * LINESPACING);
+    lp->dimen.y = lp->u.txt.nparas * (int) (lp->fontsize * LINESPACING);
 }
 
 /* compiles <str> into a label <lp> and returns its bounding box size.  */