summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-02-12 12:19:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-02-12 17:21:25 +0100
commit59ae8c36cff087277a74807f112ad6bd9dc297c4 (patch)
tree3e4a3936a5b136b83c89fab455d9ce998f31068d /sw/source
parent3148503b2f32fa7cbdbddf61523af576e36e4ef5 (diff)
Release mouse on showing context menu
Change-Id: Id94e8ab3bee1dd4629486e5455ac935b59fa56bd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110821 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/uibase/docvw/SidebarTxtControl.cxx2
1 files changed, 2 insertions, 0 deletions
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 ))