@@ -1590,7 +1590,7 @@ end;
function TToolManager.CheckExitTool: boolean;
begin
- if FShouldExitTool then
+ if FShouldExitTool and not ToolSleeping then
FShouldExitTool:= false;
SetCurrentToolType(FSwitchAfterExitTool);
@@ -603,6 +603,7 @@ var
original: TVectorOriginal;
i: Integer;
+ if Manager.ToolSleeping then exit;
if not Manager.Image.SelectionMaskEmpty and
not Manager.Image.SelectionLayerIsEmpty and
IsAffineMatrixInversible(Manager.Image.SelectionTransform) then