diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-27 20:37:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-05-28 09:46:22 +0200 |
commit | e2970060121824650f95421d8d2411840a40311f (patch) | |
tree | b798a38803832d47433f1cf76679def63e68b79b /svtools | |
parent | 164fecadfde2569cb5324017d9bf22e2963008b3 (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/+/116273
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
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 c60e557fa140..9e14b49dbe46 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -504,7 +504,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; } |