diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-24 17:32:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-25 09:56:00 +0100 |
commit | 4158cbabd6587431c89f288abea6080947d9f421 (patch) | |
tree | aa7e8e33cdb5bbfd8c74cc1b8445689b017ec910 /vcl | |
parent | f2935e5fb8fb8937f8a3ee9d9adf497b2b253a94 (diff) |
why set CMDEVT on flags for unhandled commands
Change-Id: I565e26ad01310cc05707123f4d42e24c77838793
Reviewed-on: https://gerrit.libreoffice.org/48530
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/seleng.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/seleng.cxx b/vcl/source/window/seleng.cxx index c545824436cd..b35576ee1bf1 100644 --- a/vcl/source/window/seleng.cxx +++ b/vcl/source/window/seleng.cxx @@ -342,12 +342,12 @@ void SelectionEngine::Reset() void SelectionEngine::Command( const CommandEvent& rCEvt ) { // Timer aWTimer is active during enlarging a selection - if ( !pFunctionSet || !pWin || aWTimer.IsActive() || rCEvt.GetCommand() == CommandEventId::Swipe ) + if ( !pFunctionSet || !pWin || aWTimer.IsActive() ) return; aWTimer.Stop(); - nFlags |= SelectionEngineFlags::CMDEVT; if ( rCEvt.GetCommand() == CommandEventId::StartDrag ) { + nFlags |= SelectionEngineFlags::CMDEVT; if ( nFlags & SelectionEngineFlags::DRG_ENAB ) { SAL_WARN_IF( !rCEvt.IsMouseEvent(), "vcl", "STARTDRAG: Not a MouseEvent" ); |