diff options
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 789f419716f8..197c13283324 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2331,15 +2331,10 @@ OString SdXImpressDocument::getViewRenderState(SfxViewShell* pViewShell) OStringBuffer aState; DrawViewShell* pView = nullptr; - if (pViewShell) - { - ViewShellBase* pShellBase = dynamic_cast<ViewShellBase*>(pViewShell); + if (ViewShellBase* pShellBase = dynamic_cast<ViewShellBase*>(pViewShell)) pView = dynamic_cast<DrawViewShell*>(pShellBase->GetMainViewShell().get()); - } else - { pView = GetViewShell(); - } if (pView) { |