Index: sweaver_plugin_editor.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/sweaver/plugins/sweaver_plugin_editor/sweaver_plugin_editor.js,v
retrieving revision 1.1.2.41
diff -u -r1.1.2.41 sweaver_plugin_editor.js
--- sweaver_plugin_editor.js	22 Sep 2010 07:58:38 -0000	1.1.2.41
+++ sweaver_plugin_editor.js	22 Sep 2010 08:52:47 -0000
@@ -56,7 +56,7 @@
         $.each(properties, function(i, property) {
           // Don't write anything if the value is empty.
           // 0 is not empty!          
-          if (target[prop] == '' && target[prop] != 0) {
+          if (target[prop] == '' && target[prop] != '0') {
             cssContent += '';
           }          
           // Don't add a prefix and suffix for these exceptions.
@@ -747,7 +747,7 @@
   for (key in Drupal.Sweaver.css) {
     var target = Drupal.Sweaver.css[key];
     for (prop in target) {
-      if (Drupal.Sweaver.properties[prop] && target[prop] != '') {
+      if (Drupal.Sweaver.properties[prop] && (target[prop] != '' || target[prop] == '0')) {
       // Special case for transparent.
         if ((prop == 'background-color' && target[prop] == 'transparent') || (prop == 'background-image' && target[prop] == 'none')) {
           $('#editor-changes').prepend($('<p onclick="var event = arguments[0] || window.event; event.stopPropagation(); Drupal.Sweaver.deleteProperty(\'' + key + '\', \'' + prop + '\')">' + key + ': '+ prop + ': ' + target[prop] + '</p>'));

