Fix generate_background_css, when no background color is given.

        Patch by av8rmike. 

diffs (17 lines):

diff -r f55c3450d521 -r 423e2a13d827 bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2   Sat May 09 06:46:53 2009 +0000
+++ b/bin/upgrading/s2layers/core2.s2   Sat May 09 07:11:08 2009 +0000
@@ -2613,11 +2613,8 @@ function generate_background_css (
 "Take the values for the properties in a background image group and output the 
appropriate
 line of CSS for inclusion in your stylesheet."
 {
-    if (not defined $background_color) {
-        $background_color = "auto";
-    }
-
-    var string background_css = "background: $background_color";
+    var string color = ($background_color.as_string != "") ? 
$background_color.as_string : "transparent";
+    var string background_css = "background: $color";
 
     if ($background_image != "") {
         $background_css = $background_css + " url($background_image) 
$background_image_repeat $background_image_position";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to