Kaydet (Commit) e1bab587 authored tarafından Justin Luth's avatar Justin Luth Kaydeden (comit) Justin Luth

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: 's avatarJustin Luth <justin_luth@sil.org>
üst b8fd1a81
...@@ -270,6 +270,8 @@ void DrawViewShell::MouseButtonDown(const MouseEvent& rMEvt, ...@@ -270,6 +270,8 @@ void DrawViewShell::MouseButtonDown(const MouseEvent& rMEvt,
::sd::Window* pWin) ::sd::Window* pWin)
{ {
mbMouseButtonDown = true; mbMouseButtonDown = true;
mbMouseSelecting = false;
// We have to check if a context menu is shown and we have an UI // 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 // active inplace client. In that case we have to ignore the mouse
// button down event. Otherwise we would crash (context menu has been // button down event. Otherwise we would crash (context menu has been
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment