* Use an own put for tfpginterfacedobjectlist as per bug #39846.

Maybe not the most elegant, but solves the immediately

(cherry picked from commit f532cf1698)
This commit is contained in:
marcoonthegit 2022-08-14 16:24:19 +02:00
parent 90050adcfe
commit 0f6deab1d9

View File

@ -1214,7 +1214,8 @@ end;
procedure TFPGInterfacedObjectList.Put(Index: Integer; const Item: T);
begin
inherited Put(Index, @Item);
CheckIndex(Index);
InternalItems[Index] := @Item; // eventually calls copyitem()
end;
function TFPGInterfacedObjectList.Add(const Item: T): Integer;