Pārlūkot izejas kodu

avoid conflicting action

johann 5 gadi atpakaļ
vecāks
revīzija
103fc952fe
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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