Fix crash using Shift key in Pencil tool

Bug introduced in f3fd0de3d0
This commit is contained in:
David Capello 2022-01-13 08:43:03 -03:00
parent f3fd0de3d0
commit 9e23d31d84

View File

@ -107,7 +107,8 @@ void DrawingState::initToolLoop(Editor* editor,
m_velocity.reset();
m_lastPointer = pointer;
m_mouseDownPos = msg->position();
m_mouseDownPos = (msg ? msg->position():
editor->editorToScreen(pointer.point()));
m_mouseDownTime = base::current_tick();
m_toolLoopManager->prepareLoop(pointer);