]> granicus.if.org Git - graphviz/commitdiff
change default bgcolor back to white even on devices that can handle truecolor
authorellson <devnull@localhost>
Thu, 30 Oct 2008 20:25:22 +0000 (20:25 +0000)
committerellson <devnull@localhost>
Thu, 30 Oct 2008 20:25:22 +0000 (20:25 +0000)
lib/common/emit.c

index 063227dc825d8e60327ad77acdc7f24d504dfc56..8b746cf5a629c5c97e85dbe7356523550a8b6579 100644 (file)
@@ -821,11 +821,11 @@ static void emit_background(GVJ_t * job, graph_t *g)
 {
     char *str;
     
-    /* if no bgcolor specified - first assume default of "transparent" */
+    /* if no bgcolor specified - first assume default of "white" */
     if (! ((str = agget(g, "bgcolor")) && str[0]))
-       str = "transparent";
+       str = "white";
 
-    /* if device has no truecolor support, change "transparent" (default or given) to "white" */
+    /* if device has no truecolor support, change "transparent" to "white" */
     if (! (job->flags & GVDEVICE_DOES_TRUECOLOR) && (streq(str, "transparent")))
        str = "white";