From a7bca067560e9de191ff50e9be134f0cde717305 Mon Sep 17 00:00:00 2001 From: Jesus Reyes A Date: Tue, 31 Aug 2021 00:15:14 -0500 Subject: [PATCH] LazReport: Clear objInsp selection before deleting objects to avoid AV if objInsp is editing a property, fix issue #26060 (cherry picked from commit 92805d1862220015c353301da772c2daea742a43) --- components/lazreport/source/lr_desgn.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lazreport/source/lr_desgn.pas b/components/lazreport/source/lr_desgn.pas index 27f3e7c824..629caa8bfe 100644 --- a/components/lazreport/source/lr_desgn.pas +++ b/components/lazreport/source/lr_desgn.pas @@ -4688,6 +4688,7 @@ var begin AddUndoAction(acDelete); PageView.NPEraseSelection; + ObjInsp.Select(nil); for i := Objects.Count - 1 downto 0 do begin t := TfrView(Objects[i]); @@ -4695,7 +4696,6 @@ begin Page.Delete(i); end; SetPageTitles; - ObjInsp.Select(nil); ResetSelection; FirstSelected := nil; PageView.Invalidate;