浏览代码

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

Lipinast Lekrisov 10 月之前
父节点
当前提交
2469fe8d70
共有 1 个文件被更改,包括 3 次插入4 次删除
  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