소스 검색

fixed delayed picture update

Johann ELSASS 5 년 전
부모
커밋
4d1b21687f
1개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. 15 3
      lazpaint/lazpaintmainform.pas

+ 15 - 3
lazpaint/lazpaintmainform.pas

@@ -989,7 +989,11 @@ begin
   begin
     CatchPaintPicture:= true;
     PaintPictureCatched := false;
-    result := ToolManager.ToolKeyDown(AKey) or PaintPictureCatched;
+    try
+      result := ToolManager.ToolKeyDown(AKey) or PaintPictureCatched;
+    finally
+      CatchPaintPicture:= false;
+    end;
   end else
     result := false;
 end;
@@ -1000,7 +1004,11 @@ begin
   begin
     CatchPaintPicture:= true;
     PaintPictureCatched := false;
-    result := ToolManager.ToolKeyUp(AKey) or PaintPictureCatched;
+    try
+       result := ToolManager.ToolKeyUp(AKey) or PaintPictureCatched;
+    finally
+      CatchPaintPicture:= false;
+    end;
   end else
     result := false;
 end;
@@ -1011,7 +1019,11 @@ begin
   begin
     CatchPaintPicture:= true;
     PaintPictureCatched := false;
-    result := ToolManager.ToolKeyPress(AKey) or PaintPictureCatched;
+    try
+      result := ToolManager.ToolKeyPress(AKey) or PaintPictureCatched;
+    finally
+      CatchPaintPicture:= false;
+    end;
   end else
     result := false;
 end;