mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 01:49:25 +02:00
LazReport: Clear objInsp selection before deleting objects to avoid AV if objInsp is editing a property, fix issue #26060
(cherry picked from commit 92805d1862
)
This commit is contained in:
parent
cec79c00f2
commit
a7bca06756
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user