Browse Source

Fixed TRttiRecordType.ResolveProperties (records do not have a published section)

Lipinast Lekrisov 9 months ago
parent
commit
2469fe8d70
1 changed files with 3 additions and 4 deletions
  1. 3 4
      packages/rtl-objpas/src/inc/rtti.pp

+ 3 - 4
packages/rtl-objpas/src/inc/rtti.pp

@@ -6453,13 +6453,12 @@ var
 
 begin
   List:=Nil;
+  FPropertiesResolved:=True;
   if FUsePublishedOnly then
-    aCount:=GetPropListEx(FTypeinfo,List,[vcPublished])
-  else
-    aCount:=GetPropListEx(FTypeinfo,List);
+    Exit;
+  aCount:=GetPropListEx(FTypeinfo,List);
   PropCount:=aCount; 
   J := 0;
-  FPropertiesResolved:=True;
   try
     SetLength(FProperties,aCount);
     For I:=0 to aCount-1 do