diff options
-rw-r--r-- | sw/source/uibase/docvw/SidebarTxtControl.cxx | 2 |
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 )) |