浏览代码

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