summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-09-09 10:28:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-09-09 12:42:22 +0200
commit8ecfd2b84fddb37482539702208374d2af56a44d (patch)
tree49548547ff376a21be31f966642c60c8d746cec8 /svx
parentc36fff84afb7eaa05fa065e15009c9426a5af44e (diff)
don't need to explicitly call GetFocus()
if GrabFocus() succeeds the GetFocus() should be called anyway Change-Id: I2a448659acd990bf570fe56907ac826138cc9938 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121840 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/weldeditview.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/svx/source/dialog/weldeditview.cxx b/svx/source/dialog/weldeditview.cxx
index a0f5e5e1cd03..513de53d89f8 100644
--- a/svx/source/dialog/weldeditview.cxx
+++ b/svx/source/dialog/weldeditview.cxx
@@ -260,10 +260,7 @@ bool WeldEditView::MouseButtonDown(const MouseEvent& rMEvt)
CaptureMouse();
if (!HasFocus() && CanFocus())
- {
GrabFocus();
- GetFocus();
- }
EditView* pEditView = GetEditView();
return pEditView && pEditView->MouseButtonDown(rMEvt);