ソースを参照

avoid conflicting action

johann 5 年 前
コミット
103fc952fe
1 ファイル変更1 行追加1 行削除
  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