summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/view/editsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index f3b2060c651f..e12c5460c09d 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -310,7 +310,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
if (pTopView)
{
pTopView->Paste();
- if (vcl::Window* pViewWindow = pTopView ? pTopView->GetWindow() : nullptr)
+ if (vcl::Window* pViewWindow = pTopView->GetWindow())
pViewWindow->GrabFocus();
}
}