From: Emden Gansner Date: Thu, 12 Apr 2012 16:01:29 +0000 (-0400) Subject: Check for bgcolor if fill is set but no fillcolor is set. X-Git-Tag: LAST_LIBGRAPH~32^2~448 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e44b66c15ed5dae51f0058f1590e1a21eac0d17b;p=graphviz Check for bgcolor if fill is set but no fillcolor is set. --- diff --git a/lib/common/emit.c b/lib/common/emit.c index cf2ce2f5c..4e063e590 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -3417,7 +3417,7 @@ void emit_clusters(GVJ_t * job, Agraph_t * g, int flags) don't bother checking. if gradient is set fillcolor trumps bgcolor */ - if (!filled && ((color = agget(sg, "bgcolor")) != 0) && color[0]) { + if ((!filled || !fillcolor) && ((color = agget(sg, "bgcolor")) != 0) && color[0]) { fillcolor = color; filled = FILL; }