]> granicus.if.org Git - graphviz/commitdiff
add support for "color" property to <table> and <cell> to permit
authorellson <devnull@localhost>
Fri, 6 Jun 2008 19:15:43 +0000 (19:15 +0000)
committerellson <devnull@localhost>
Fri, 6 Jun 2008 19:15:43 +0000 (19:15 +0000)
  overriding of inherited pencolor.

lib/common/htmltable.c

index 151ea9b3ca392b5265f648f82143c17ad78a1d36..17b504f9b5fc37f7c55be591e77670cffaad5a0a 100644 (file)
@@ -1763,7 +1763,8 @@ int make_html_label(graph_t *g, textlabel_t * lp, void *obj)
     }
 
     if (lbl->kind == HTML_TBL) {
-       lbl->u.tbl->data.pencolor = getPenColor(obj);
+       if (! lbl->u.tbl->data.pencolor)
+           lbl->u.tbl->data.pencolor = 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;