- fixed little bug in WS component reregistration (with new private)

git-svn-id: trunk@11213 -
This commit is contained in:
paul 2007-05-29 09:11:34 +00:00
parent 1eff85d939
commit 469c195b08

View File

@ -243,9 +243,10 @@ procedure RegisterWSComponent(const AComponent: TComponentClass;
end
else begin
// keep original WSPrivate (only when different than default class)
if (PClass(ANode^.VClass + vmtWSPrivate)^ <> nil)
and (PClass(ANode^.VClass + vmtWSPrivate)^ <> TWSPrivate)
then WSPrivate := PClass(ANode^.VClass + vmtWSPrivate)^;
if (AWSPrivate = nil) and
(PClass(ANode^.VClass + vmtWSPrivate)^ <> nil) and
(PClass(ANode^.VClass + vmtWSPrivate)^ <> TWSPrivate) then
WSPrivate := PClass(ANode^.VClass + vmtWSPrivate)^;
end;
// Initially copy the WSClass