Browse Source

avoid conflicting action

johann 5 năm trước cách đây
mục cha
commit
103fc952fe
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lazpaint/tools/utoollayer.pas

+ 1 - 1
lazpaint/tools/utoollayer.pas

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