Kaydet (Commit) 4158cbab authored tarafından Caolán McNamara's avatar Caolán McNamara

why set CMDEVT on flags for unhandled commands

Change-Id: I565e26ad01310cc05707123f4d42e24c77838793
Reviewed-on: https://gerrit.libreoffice.org/48530Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst f2935e5f
...@@ -342,12 +342,12 @@ void SelectionEngine::Reset() ...@@ -342,12 +342,12 @@ void SelectionEngine::Reset()
void SelectionEngine::Command( const CommandEvent& rCEvt ) void SelectionEngine::Command( const CommandEvent& rCEvt )
{ {
// Timer aWTimer is active during enlarging a selection // Timer aWTimer is active during enlarging a selection
if ( !pFunctionSet || !pWin || aWTimer.IsActive() || rCEvt.GetCommand() == CommandEventId::Swipe ) if ( !pFunctionSet || !pWin || aWTimer.IsActive() )
return; return;
aWTimer.Stop(); aWTimer.Stop();
nFlags |= SelectionEngineFlags::CMDEVT;
if ( rCEvt.GetCommand() == CommandEventId::StartDrag ) if ( rCEvt.GetCommand() == CommandEventId::StartDrag )
{ {
nFlags |= SelectionEngineFlags::CMDEVT;
if ( nFlags & SelectionEngineFlags::DRG_ENAB ) if ( nFlags & SelectionEngineFlags::DRG_ENAB )
{ {
SAL_WARN_IF( !rCEvt.IsMouseEvent(), "vcl", "STARTDRAG: Not a MouseEvent" ); SAL_WARN_IF( !rCEvt.IsMouseEvent(), "vcl", "STARTDRAG: Not a MouseEvent" );
......
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