summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/drviews1.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 588cc5088b31..93814cc08726 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -850,8 +850,7 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
}
}
- if( mpDrawView )
- mpDrawView->SdrEndTextEdit();
+ mpDrawView->SdrEndTextEdit();
mpActualPage = NULL;
@@ -984,7 +983,7 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
/**********************************************************************
* MASTERPAGE
**********************************************************************/
- SdrPageView* pPageView = mpDrawView ? mpDrawView->GetSdrPageView() : NULL;
+ SdrPageView* pPageView = mpDrawView->GetSdrPageView();
if (pPageView)
{