diff options
-rw-r--r-- | svx/source/dialog/weldeditview.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svx/source/dialog/weldeditview.cxx b/svx/source/dialog/weldeditview.cxx index 9d79d78c961c..e7d90fab15b8 100644 --- a/svx/source/dialog/weldeditview.cxx +++ b/svx/source/dialog/weldeditview.cxx @@ -132,6 +132,9 @@ bool WeldEditView::MouseMove(const MouseEvent& rMEvt) bool WeldEditView::MouseButtonDown(const MouseEvent& rMEvt) { + if (!IsMouseCaptured()) + CaptureMouse(); + if (!HasFocus()) { GrabFocus(); @@ -143,6 +146,8 @@ bool WeldEditView::MouseButtonDown(const MouseEvent& rMEvt) bool WeldEditView::MouseButtonUp(const MouseEvent& rMEvt) { + if (IsMouseCaptured()) + ReleaseMouse(); return m_xEditView && m_xEditView->MouseButtonUp(rMEvt); } |