sw/source/uibase/docvw/SidebarTxtControl.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 59ae8c36cff087277a74807f112ad6bd9dc297c4 Author: Caolán McNamara <[email protected]> AuthorDate: Fri Feb 12 12:19:36 2021 +0000 Commit: Caolán McNamara <[email protected]> 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 <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> 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 )) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
