summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework/module/CenterViewFocusModule.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/framework/module/CenterViewFocusModule.cxx')
-rw-r--r--sd/source/ui/framework/module/CenterViewFocusModule.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/framework/module/CenterViewFocusModule.cxx b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
index 705325619a7b..4cbe71f7564e 100644
--- a/sd/source/ui/framework/module/CenterViewFocusModule.cxx
+++ b/sd/source/ui/framework/module/CenterViewFocusModule.cxx
@@ -139,7 +139,7 @@ void CenterViewFocusModule::HandleNewView (
if (pViewShellWrapper != nullptr)
{
std::shared_ptr<ViewShell> pViewShell = pViewShellWrapper->GetViewShell();
- if (pViewShell.get() != nullptr)
+ if (pViewShell != nullptr)
mpBase->GetViewShellManager()->MoveToTop(*pViewShell);
}
}