mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-24 13:39:08 +02:00
widgetset: fix ClassParent for TWSClass
git-svn-id: trunk@12496 -
This commit is contained in:
parent
e4a0241fcb
commit
b9fbf093e0
@ -356,7 +356,7 @@ procedure RegisterWSComponent(const AComponent: TComponentClass;
|
||||
ANode^.VClassName := '(V)' + ANode^.WSClass.ClassName;
|
||||
PPointer(ANode^.VClass + vmtClassName)^ := @ANode^.VClassName;
|
||||
// Adjust classparent
|
||||
PPointer(ANode^.VClass + vmtParent)^ := PPointer(Pointer(ParentWSNode^.WSClass) + vmtParent)^;
|
||||
PPointer(ANode^.VClass + vmtParent)^ := ParentWSNode^.WSClass;
|
||||
// Delete methodtable entry
|
||||
PPointer(ANode^.VClass + vmtMethodTable)^ := nil;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user