Start a straight line w/Shift key only if mouse is on the editor

This commit is contained in:
David Capello 2017-06-19 13:18:38 -03:00
parent 7323f1d071
commit 76f2502b98

View File

@ -1519,6 +1519,7 @@ bool Editor::startStraightLineWithFreehandTool()
tools::Tool* tool = App::instance()->activeToolManager()->selectedTool(); tools::Tool* tool = App::instance()->activeToolManager()->selectedTool();
return return
(isActive() && (isActive() &&
(hasMouse() || hasCapture()) &&
tool && tool &&
tool->getController(0)->isFreehand() && tool->getController(0)->isFreehand() &&
tool->getInk(0)->isPaint() && tool->getInk(0)->isPaint() &&