summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-24 17:18:35 +0000
committerMichael Stahl <mstahl@redhat.com>2018-01-29 17:02:30 +0100
commit2663df310f3857b9334ac78663197e3c9edc281c (patch)
tree4d9a28039c78a10e20c079234e6ade2ca8456036 /vcl/source
parentb7aedaf539a08e1b8a6966a75ebcbb7527466dd0 (diff)
gtk3: single click with selection set doesn't unselect
this is a safe backportable fix, the unconditional nFlags |= SelectionEngineFlags::CMDEVT looks the real dubious thing to me, but only the gtk3 backend has swipe support so just returning immediately on a swipe definitely ok Change-Id: Iade26d0d9260ce76dfb2766ac9e5ca9fa9275bf4 Reviewed-on: https://gerrit.libreoffice.org/48529 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/seleng.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx
index c911a9059551..c545824436cd 100644
--- a/vcl/source/window/seleng.cxx
+++ b/vcl/source/window/seleng.cxx
@@ -342,7 +342,7 @@ void SelectionEngine::Reset()
void SelectionEngine::Command( const CommandEvent& rCEvt )
{
// Timer aWTimer is active during enlarging a selection
- if ( !pFunctionSet || !pWin || aWTimer.IsActive() )
+ if ( !pFunctionSet || !pWin || aWTimer.IsActive() || rCEvt.GetCommand() == CommandEventId::Swipe )
return;
aWTimer.Stop();
nFlags |= SelectionEngineFlags::CMDEVT;