]> granicus.if.org Git - graphviz/commitdiff
Remove old integer based calculations.
authorEmden R. Gansner <erg@alum.mit.edu>
Tue, 11 Feb 2014 15:51:06 +0000 (10:51 -0500)
committerEmden R. Gansner <erg@alum.mit.edu>
Tue, 11 Feb 2014 15:51:06 +0000 (10:51 -0500)
lib/common/htmltable.c

index 88e044c2a869bbcd0e86f1858afc63b428edec57..5df2a5c28a0e907f54062e37bd8f9a4f35bd17a6 100644 (file)
@@ -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;