diff options
author | Winfried Donkers <osc@dci-electronics.nl> | 2012-03-01 13:41:14 +0100 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@suse.com> | 2012-03-01 16:57:34 +0200 |
commit | 085e8a07e61ef2d3a82e11094d8773ab17cfdb3c (patch) | |
tree | 01256813b384c338882f0386ff9fc46644d99d5d /svx/source/tbxctrls/tbcontrl.cxx | |
parent | 54442c917d7bb6b2e955c8c8315e0352dc6d2281 (diff) |
fdo#45671 calc cell background color simplified code for split button
Diffstat (limited to 'svx/source/tbxctrls/tbcontrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index d6a3244e6cfb..b750152735ae 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -2327,16 +2327,6 @@ void SvxColorExtToolBoxControl::StateChanged( bChoiceFromPalette = sal_False; switch( nSID ) { - case SID_ATTR_CHAR_COLOR_EXT : - case SID_ATTR_CHAR_COLOR_BACKGROUND_EXT : - if ( SFX_ITEM_DONTCARE != eState ) - { - const SfxBoolItem* pBool = PTR_CAST( SfxBoolItem, pState ); - rTbx.CheckItem( nId, pBool && pBool->GetValue()); - } - rTbx.EnableItem( nId, SFX_ITEM_DISABLED != eState ); - break; - case SID_ATTR_CHAR_COLOR2 : case SID_ATTR_CHAR_COLOR_BACKGROUND : case SID_BACKGROUND_COLOR : @@ -2381,7 +2371,7 @@ void SvxColorExtToolBoxControl::Select( sal_Bool ) Sequence< PropertyValue > aArgs( 1 ); aArgs[0].Name = aParamName; - aArgs[0].Value = makeAny( GetToolBox().IsItemChecked( GetId() )); + aArgs[0].Value = makeAny( (sal_uInt32)( mLastColor.GetColor() )); Dispatch( aCommand, aArgs ); } |