From 1b79bd75b9c0f70c19026207647f41e2025cb716 Mon Sep 17 00:00:00 2001 From: David Capello Date: Wed, 16 Sep 2015 12:24:25 -0300 Subject: [PATCH] Avoid drawing straight lines with Shift key + Magic Wand tool --- src/app/ui/editor/drawing_state.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/ui/editor/drawing_state.cpp b/src/app/ui/editor/drawing_state.cpp index 53ac1d646..17e839d32 100644 --- a/src/app/ui/editor/drawing_state.cpp +++ b/src/app/ui/editor/drawing_state.cpp @@ -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) {