From 40136e5074e076196f21024305bc43b6288df252 Mon Sep 17 00:00:00 2001 From: David Capello Date: Mon, 19 Jun 2017 12:34:56 -0300 Subject: [PATCH] Fix problem using Shift key on non-active editor This avoid using focusing a non-active/visible editor with Shift key if there is no last position set in the active editor yet. --- src/app/ui/editor/editor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp index fe01cc439..63deceba1 100644 --- a/src/app/ui/editor/editor.cpp +++ b/src/app/ui/editor/editor.cpp @@ -1518,7 +1518,8 @@ bool Editor::startStraightLineWithFreehandTool() { tools::Tool* tool = App::instance()->activeToolManager()->selectedTool(); return - (tool && + (isActive() && + tool && tool->getController(0)->isFreehand() && tool->getInk(0)->isPaint() && (getCustomizationDelegate()