summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/edtdd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/edtdd.cxx')
-rw-r--r--sw/source/uibase/docvw/edtdd.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/edtdd.cxx b/sw/source/uibase/docvw/edtdd.cxx
index 8f86aa1d310a..278030c1f5ec 100644
--- a/sw/source/uibase/docvw/edtdd.cxx
+++ b/sw/source/uibase/docvw/edtdd.cxx
@@ -121,6 +121,16 @@ void SwEditWin::StartDrag( sal_Int8 /*nAction*/, const Point& rPosPixel )
if ( !bStart || m_bIsInDrag )
return;
+ // If the add selection mode has been pushed in the MouseButtonDown handler it needs to be
+ // popped or it will remain active and noticable in the statusbar selection control until the
+ // next MouseButtonUp event after the DnD, since a MouseButtonUp event is not received by the
+ // edit window when DnD is done.
+ if (g_bModePushed)
+ {
+ rSh.PopMode();
+ g_bModePushed = false;
+ }
+
m_bMBPressed = false;
ReleaseMouse();
g_bFrameDrag = false;