]> granicus.if.org Git - graphviz/commitdiff
When only one cell per line, adjust rule width to handle space and parent border...
authorEmden Gansner <erg@research.att.com>
Wed, 3 Aug 2011 20:35:07 +0000 (16:35 -0400)
committerEmden Gansner <erg@research.att.com>
Wed, 3 Aug 2011 20:35:07 +0000 (16:35 -0400)
lib/common/htmltable.c

index b24bd7b20e5a0b72d6a16a29e2f3e6898a8dd824..c0e16a7a48d0333c9db02cd6690c5d1bee97aeb5 100644 (file)
@@ -401,6 +401,8 @@ emit_html_rules(GVJ_t * job, htmlcell_t * cp, htmlenv_t * env, char *color)
            // extend to center of table border and add half cell spacing
            base = cp->parent->data.border + cp->parent->data.space/2;
            rule_pt.x = pts.LL.x - base - cp->parent->data.space/2;
+           if(cp->col + cp->cspan == cp->parent->cc)  // also last column
+               base *= 2;
        }
        else if(cp->col + cp->cspan == cp->parent->cc){  // last column
            // extend to center of table border and add half cell spacing