summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index a1684a4ee4c1..cd71372756e7 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -165,8 +165,7 @@ void SlideBackground::Initialize()
if ( pFrameView->GetViewShEditMode() == EditMode::Page )
{
- DrawViewShell* pDrawViewShell = static_cast<DrawViewShell*>(pMainViewShell);
- SdPage* mpPage = pDrawViewShell->getCurrentPage();
+ SdPage* mpPage = pMainViewShell->getCurrentPage();
populateMasterSlideDropdown();
OUString aLayoutName( mpPage->GetLayoutName() );