]> granicus.if.org Git - graphviz/commitdiff
Revert to earlier semantics so that svg and ps output have no background by
authorerg <devnull@localhost>
Thu, 15 Feb 2007 23:34:38 +0000 (23:34 +0000)
committererg <devnull@localhost>
Thu, 15 Feb 2007 23:34:38 +0000 (23:34 +0000)
default.

lib/common/emit.c

index 01f0185330904d12d8ed73b1e46f93de94300732..bc3a24a9d91570cba34c4dc1a3a35bab1f9f5fce 100644 (file)
@@ -719,8 +719,12 @@ void emit_background(GVJ_t * job, graph_t *g)
 {
     char *str;
 
-    if (! ((str = agget(g, "bgcolor")) && str[0]))
-       str = "white";
+    if (! ((str = agget(g, "bgcolor")) && str[0])) {
+       if (gvrender_features(job) & GVRENDER_NO_BG)
+           str = "transparent";
+       else
+           str = "white";
+    }
     gvrender_set_fillcolor(job, str);
     gvrender_set_pencolor(job, str);
     gvrender_box(job, job->pageBox, TRUE);     /* filled */