From: ellson Date: Thu, 17 Aug 2006 13:48:29 +0000 (+0000) Subject: fix problem with text height estimate (rtest/graphs/big.dot) X-Git-Tag: LAST_LIBGRAPH~32^2~5964 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d3771dfc310f78560abb9e03aa103529fd10629;p=graphviz fix problem with text height estimate (rtest/graphs/big.dot) --- diff --git a/lib/common/labels.c b/lib/common/labels.c index 52a4b409c..0af682e47 100644 --- a/lib/common/labels.c +++ b/lib/common/labels.c @@ -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 into a label and returns its bounding box size. */