[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Feb 12 16:22:11 UTC 2021
sw/source/uibase/docvw/SidebarTxtControl.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 59ae8c36cff087277a74807f112ad6bd9dc297c4
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Feb 12 12:19:36 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Feb 12 17:21:25 2021 +0100
Release mouse on showing context menu
Change-Id: Id94e8ab3bee1dd4629486e5455ac935b59fa56bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110821
Tested-by: Caolán McNamara <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/uibase/docvw/SidebarTxtControl.cxx b/sw/source/uibase/docvw/SidebarTxtControl.cxx
index ee8f83f6b85d..3c5de1f2b8ee 100644
--- a/sw/source/uibase/docvw/SidebarTxtControl.cxx
+++ b/sw/source/uibase/docvw/SidebarTxtControl.cxx
@@ -404,6 +404,8 @@ bool SidebarTextControl::Command( const CommandEvent& rCEvt )
if ( rCEvt.GetCommand() == CommandEventId::ContextMenu )
{
+ if (IsMouseCaptured())
+ ReleaseMouse();
if ( !mrSidebarWin.IsProtected() &&
pEditView &&
pEditView->IsWrongSpelledWordAtPos( rCEvt.GetMousePosPixel(), true ))
More information about the Libreoffice-commits
mailing list