summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx20
1 files changed, 5 insertions, 15 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index 08042defd663..f4e4d045e174 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -244,11 +244,11 @@ void SlideBackground::HandleContextChange(
mpMasterSlide->Disable();
mpDspMasterBackground->Disable();
mpDspMasterObjects->Disable();
- mpFillStyle->Show();
- mpBackgroundLabel->Show();
+ mpFillStyle->Hide();
+ mpBackgroundLabel->Hide();
mpInsertImage->Show();
}
- else if ( maContext == maImpressHandoutContext )
+ else if ( maContext == maImpressHandoutContext || maContext == maImpressNotesContext )
{
mpCloseMaster->Hide();
mpEditMaster->Hide();
@@ -270,17 +270,7 @@ void SlideBackground::HandleContextChange(
mpBackgroundLabel->Show();
mpInsertImage->Show();
}
- else if (maContext == maImpressNotesContext)
- {
- mpCloseMaster->Hide();
- mpEditMaster->Hide();
- mpMasterSlide->Disable();
- mpDspMasterBackground->Disable();
- mpDspMasterObjects->Disable();
- mpFillStyle->Show();
- mpBackgroundLabel->Show();
- mpInsertImage->Hide();
- }
+
// Need to do a relayouting, otherwise the panel size is not updated after show / hide controls
sfx2::sidebar::Panel* pPanel = dynamic_cast<sfx2::sidebar::Panel*>(GetParent());
if(pPanel)
@@ -296,7 +286,7 @@ void SlideBackground::Update()
{
eFillStyle nPos = static_cast<eFillStyle>(mpFillStyle->GetSelectedEntryPos());
- if(maContext == maImpressHandoutContext)
+ if(maContext != maImpressOtherContext)
nPos = NONE;
SfxObjectShell* pSh = SfxObjectShell::Current();