diff options
-rw-r--r-- | sd/source/ui/sidebar/SlideBackground.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx index 6a5fbfdf69f4..dd8a972faa0c 100644 --- a/sd/source/ui/sidebar/SlideBackground.cxx +++ b/sd/source/ui/sidebar/SlideBackground.cxx @@ -400,20 +400,22 @@ void SlideBackground::NotifyItemUpdate( case SID_DISPLAY_MASTER_BACKGROUND: { - const SfxBoolItem* aBoolItem = dynamic_cast< const SfxBoolItem* >(pState); - if(aBoolItem->GetValue()) - mpDspMasterBackground->SetState(TRISTATE_TRUE); - else - mpDspMasterBackground->SetState(TRISTATE_FALSE); + if(eState >= SfxItemState::DEFAULT) + { + const SfxBoolItem* aBoolItem = dynamic_cast< const SfxBoolItem* >(pState); + if(aBoolItem) + mpDspMasterBackground->Check(aBoolItem->GetValue()); + } } break; case SID_DISPLAY_MASTER_OBJECTS: { - const SfxBoolItem* aBoolItem = dynamic_cast< const SfxBoolItem* >(pState); - if(aBoolItem->GetValue()) - mpDspMasterObjects->SetState(TRISTATE_TRUE); - else - mpDspMasterObjects->SetState(TRISTATE_FALSE); + if(eState >= SfxItemState::DEFAULT) + { + const SfxBoolItem* aBoolItem = dynamic_cast< const SfxBoolItem* >(pState); + if(aBoolItem) + mpDspMasterObjects->Check(aBoolItem->GetValue()); + } } break; |