Browse Source

avoid conflicting action

johann 5 years ago
parent
commit
103fc952fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lazpaint/tools/utoollayer.pas

+ 1 - 1
lazpaint/tools/utoollayer.pas

@@ -156,6 +156,7 @@ begin
   result := EmptyRect;
   result := EmptyRect;
   if not handMoving then
   if not handMoving then
   begin
   begin
+    GetAction;
     handMoving := true;
     handMoving := true;
     handOriginF := ptF;
     handOriginF := ptF;
     idx := Manager.Image.CurrentLayerIndex;
     idx := Manager.Image.CurrentLayerIndex;
@@ -226,7 +227,6 @@ procedure TToolMoveLayer.NeedLayerBounds;
 var
 var
   idx: Integer;
   idx: Integer;
 begin
 begin
-  GetAction;
   idx := Manager.Image.CurrentLayerIndex;
   idx := Manager.Image.CurrentLayerIndex;
   if not FLayerBoundsDefined then
   if not FLayerBoundsDefined then
   begin
   begin