diff options
Diffstat (limited to 'svx/source/sidebar')
-rw-r--r-- | svx/source/sidebar/shadow/ShadowPropertyPanel.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx index ff21110a2007..93259adc27f0 100644 --- a/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx +++ b/svx/source/sidebar/shadow/ShadowPropertyPanel.cxx @@ -271,15 +271,10 @@ void ShadowPropertyPanel::NotifyItemUpdate( if(eState >= SfxItemState::DEFAULT) { const SdrOnOffItem* pItem = dynamic_cast< const SdrOnOffItem* >(pState); - if(pItem) - { - if (pItem->GetValue()) - mxShowShadow->set_state(TRISTATE_TRUE); - else - mxShowShadow->set_state(TRISTATE_FALSE); - } + if (pItem && pItem->GetValue()) + mxShowShadow->set_state(TRISTATE_TRUE); else - mxShowShadow.reset(); + mxShowShadow->set_state(TRISTATE_FALSE); } } break; |