From: Alan Knowles Date: Wed, 17 Nov 2010 08:41:19 +0000 (+0800) Subject: Pman.Gnumeric.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=51137af4ab4f83ab9d68ec89a21ddfa5d6ea39a1;p=Pman.Core Pman.Gnumeric.js --- diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index 283f3bff..30e9e656 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -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; - } }