diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-27 20:37:50 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-05-30 08:20:16 +0200 |
commit | 24675c1e569bef34584564baa690ffc8d228948f (patch) | |
tree | 689d43ed829d8a8340bb715e113a0bd0f7b9604f /svtools | |
parent | 049e7a5e6d7c41f7d4a584487ffab4b637d17008 (diff) |
tdf#142150 nothing already selected on MouseUp without previous MouseDown
if mouse down was on tooltip (possible on macOS)
Change-Id: Icb4328fa6977356c3bac5f37d42e99ae8d4e4b98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116158
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index a83888276b31..0c3cb98bd58e 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -510,7 +510,9 @@ bool ValueSet::MouseButtonUp( const MouseEvent& rMouseEvent ) { if (rMouseEvent.IsLeft() && !rMouseEvent.IsMod2()) { - Select(); + // tdf#142150 MouseUp seen without previous MouseDown + if (mnSelItemId) + Select(); return true; } |