]> granicus.if.org Git - graphviz/commitdiff
Check for bgcolor if fill is set but no fillcolor is set.
authorEmden Gansner <erg@research.att.com>
Thu, 12 Apr 2012 16:01:29 +0000 (12:01 -0400)
committerEmden Gansner <erg@research.att.com>
Thu, 12 Apr 2012 16:01:29 +0000 (12:01 -0400)
lib/common/emit.c

index cf2ce2f5c6fd8ace8bc7d366d12a5336db52e954..4e063e5900225e6c959b0204e1e658ba3d3ff8ee 100644 (file)
@@ -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;
             }