IDE: fixed compilation with fpc 3.1.1, bug #30262

git-svn-id: trunk@52482 -
This commit is contained in:
mattias 2016-06-12 07:01:24 +00:00
parent 824e8f1f9d
commit d015e429f4

View File

@ -1506,7 +1506,11 @@ begin
// set TypeData (PropCount is the total number of properties, including ancestors)
NewTypeData^.ClassType:=TClass(NewVMT);
{$IF FPC_FULLVERSION>30000}
NewTypeData^.ParentInfoRef:=AncestorClass.ClassInfo;
{$ELSE}
NewTypeData^.ParentInfo:=AncestorClass.ClassInfo;
{$ENDIF}
NewTypeData^.PropCount:=GetTypeData(NewTypeData^.ParentInfo)^.PropCount;
NewTypeData^.UnitName:=NewUnitName;
AddedPropCount:=GetTypeDataPropCountAddr(NewTypeData);