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.
This commit is contained in:
David Capello 2017-06-19 12:34:56 -03:00
parent b7d6311c4c
commit 40136e5074

View File

@ -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()