mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-08 01:41:22 +02:00
- fixed little bug in WS component reregistration (with new private)
git-svn-id: trunk@11213 -
This commit is contained in:
parent
1eff85d939
commit
469c195b08
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user