Avoid drawing straight lines with Shift key + Magic Wand tool

This commit is contained in:
David Capello 2015-09-16 12:24:25 -03:00
parent 8aefa24a5b
commit 1b79bd75b9

View File

@ -83,6 +83,7 @@ void DrawingState::initToolLoop(Editor* editor, MouseMessage* msg)
bool movement = false;
if (m_toolLoop->getController()->isFreehand() &&
m_toolLoop->getInk()->isPaint() &&
(editor->getCustomizationDelegate()
->getPressedKeyAction(KeyContext::FreehandTool) & KeyAction::StraightLineFromLastPoint) == KeyAction::StraightLineFromLastPoint &&
m_lastPoint.x >= 0) {