From 856b1bf3d2d75bd0a5c82cd0baeb86a0a14d5c8a Mon Sep 17 00:00:00 2001 From: "Emden R. Gansner" Date: Tue, 11 Feb 2014 10:51:06 -0500 Subject: [PATCH] Remove old integer based calculations. --- lib/common/htmltable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 88e044c2a..5df2a5c28 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -2110,8 +2110,8 @@ int make_html_label(void *obj, textlabel_t * lp) if (!lbl->u.tbl->data.pencolor && getPenColor(obj)) lbl->u.tbl->data.pencolor = strdup(getPenColor(obj)); rv |= size_html_tbl(g, lbl->u.tbl, NULL, &env); - wd2 = (lbl->u.tbl->data.box.UR.x + 1) / 2; - ht2 = (lbl->u.tbl->data.box.UR.y + 1) / 2; + wd2 = (lbl->u.tbl->data.box.UR.x) / 2; + ht2 = (lbl->u.tbl->data.box.UR.y) / 2; box = boxfof(-wd2, -ht2, wd2, ht2); pos_html_tbl(lbl->u.tbl, box, BOTTOM | RIGHT | TOP | LEFT); lp->dimen.x = box.UR.x - box.LL.x; -- 2.40.0