summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2018-07-03 13:05:32 +0300
committerJustin Luth <justin_luth@sil.org>2018-07-03 13:23:05 +0200
commite1bab58778fd501f2d2aff7e5dc61eefdc229c9a (patch)
treebfafbbec0165fb8860530fba70a34f0d883ca2c5
parentb8fd1a814ffc80f2802c5b980febabcffe9606cb (diff)
tdf#109190 sd: cancel selecting status on new mousedown
It is possible to cancel a mouse-down without a mouse-up (for example with an ESC button). So, cancel an obsolete "MouseSelecting" on mouse-down. Change-Id: I37d641612cf2cd8099af8f04b12fdb364c4f9e24 Reviewed-on: https://gerrit.libreoffice.org/56857 Tested-by: Jenkins Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r--sd/source/ui/view/drviews4.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/view/drviews4.cxx b/sd/source/ui/view/drviews4.cxx
index 41f387897f56..f8aca149a4ae 100644
--- a/sd/source/ui/view/drviews4.cxx
+++ b/sd/source/ui/view/drviews4.cxx
@@ -270,6 +270,8 @@ void DrawViewShell::MouseButtonDown(const MouseEvent& rMEvt,
::sd::Window* pWin)
{
mbMouseButtonDown = true;
+ mbMouseSelecting = false;
+
// We have to check if a context menu is shown and we have an UI
// active inplace client. In that case we have to ignore the mouse
// button down event. Otherwise we would crash (context menu has been