From 76f2502b982bb3f19aef88d255ae52dfb2be537f Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 19 Jun 2017 13:18:38 -0300 Subject: [PATCH] Start a straight line w/Shift key only if mouse is on the editor --- src/app/ui/editor/editor.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp index 63deceba1..bf2729ab4 100644 --- a/src/app/ui/editor/editor.cpp +++ b/src/app/ui/editor/editor.cpp @@ -1519,6 +1519,7 @@ bool Editor::startStraightLineWithFreehandTool() tools::Tool* tool = App::instance()->activeToolManager()->selectedTool(); return (isActive() && + (hasMouse() || hasCapture()) && tool && tool->getController(0)->isFreehand() && tool->getInk(0)->isPaint() &&