* Small correction in property resolve

This commit is contained in:
Michaël Van Canneyt 2024-07-19 16:05:09 +02:00
parent b0a82993e6
commit fac7c21b9b

View File

@ -5916,7 +5916,10 @@ begin
Inc(IdxCount);
obj := GRttiPool[FUsePublishedOnly].GetByHandle(TP);
if Assigned(obj) then
FProperties[I]:=obj as TRttiProperty
begin
Prop:=obj as TRttiProperty;
FProperties[I]:=Prop;
end
else
begin
Prop:=TRttiProperty.Create(Self, TP);
@ -5927,6 +5930,7 @@ begin
Prop.FVisibility:=MemberVisibilities[Info^.Visibility];
Prop.FStrictVisibility:=Info^.StrictVisibility;
end;
FPropertiesResolved:=True;
finally
if Assigned(List) then
FreeMem(List);