Pman.Gnumeric.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 17 Nov 2010 08:41:19 +0000 (16:41 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 17 Nov 2010 08:41:19 +0000 (16:41 +0800)
Pman.Gnumeric.js

index 283f3bf..30e9e65 100644 (file)
@@ -946,12 +946,14 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, {
             
             'color': function(ent,v) { 
                 ent['Fore'] = toCol(v);
+                // this is a bit dumb.. we assume that if it's not black text, then it's shaded..
+                if (ent['Fore'] != '0:0:0') {
+                    ent['Shade'] = 1;
+                }
+                
             },
             'background-color' : function(ent,v) { 
                 ent['Back'] = toCol(v);
-                if (ent['Back'] != '0:0:0') {
-                    ent['Shade'] = 1;
-                }
                 
                 
             }