Browse Source

* Small correction in property resolve

Michaël Van Canneyt 1 year ago
parent
commit
fac7c21b9b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/rtl-objpas/src/inc/rtti.pp

+ 5 - 1
packages/rtl-objpas/src/inc/rtti.pp

@@ -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);