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.40
diff -u -r1.1.2.40 sweaver_plugin_editor.js
--- sweaver_plugin_editor.js	20 Sep 2010 07:17:56 -0000	1.1.2.40
+++ sweaver_plugin_editor.js	22 Sep 2010 07:53:47 -0000
@@ -55,15 +55,16 @@
         var properties = Drupal.Sweaver.properties[prop]['property'].split(' ');
         $.each(properties, function(i, property) {
           // Don't write anything if the value is empty.
-          if (target[prop] == '') {
+          // 0 is not empty!          
+          if (target[prop] == '' && target[prop] != 0) {
             cssContent += '';
           }          
           // Don't add a prefix and suffix for these exceptions.
           else if ((property == 'background-color' && target[prop] == 'transparent') || (property == 'background-image' && target[prop] == 'none')) {
-              cssContent += '  '+ property + ': ' + target[prop] + ';\n';
+            cssContent += '  '+ property + ': ' + target[prop] + ';\n';
           }
           else {
-              cssContent += '  '+ property + ': ' + Drupal.Sweaver.properties[prop].prefix + target[prop] + Drupal.Sweaver.properties[prop].suffix + ';\n';
+            cssContent += '  '+ property + ': ' + Drupal.Sweaver.properties[prop].prefix + target[prop] + Drupal.Sweaver.properties[prop].suffix + ';\n';
           }
         });
       }

