diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-01-25 11:43:17 +0000 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2021-01-27 15:39:45 +0100 |
commit | 44d2f2e2cb3ad893bdf1e9b11689297e2f7e29b4 (patch) | |
tree | df2e1352f8f7968cc85531bc1420eb3736378cc4 | |
parent | c28955a7ff01fdb8b272513e24c441e2b44eaf8a (diff) |
tdf#139857 release mouse on launch context menu
Change-Id: I2baa635dbc81c326eecb1fc579a0f80901d4117d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109876
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r-- | sc/source/ui/app/inputwin.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 2be36193748a..2846ca43dc54 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -1696,6 +1696,8 @@ bool ScTextWnd::Command( const CommandEvent& rCEvt ) Size aSize = GetOutputSizePixel(); aPos = Point(aSize.Width() / 2, aSize.Height() / 2); } + if (IsMouseCaptured()) + ReleaseMouse(); pViewFrm->GetDispatcher()->ExecutePopup("formulabar", &mrGroupBar.GetVclParent(), &aPos); } } |