mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-19 01:19:22 +02:00
* Removing from previous owner after doing validation
This commit is contained in:
parent
49b0ae4bec
commit
0d7474cec4
@ -5199,9 +5199,9 @@ procedure TComponent.InsertComponent(AComponent: TComponent);
|
||||
|
||||
begin
|
||||
AComponent.ValidateContainer(Self);
|
||||
ValidateRename(AComponent,'',AComponent.FName);
|
||||
if AComponent.FOwner <> nil then
|
||||
AComponent.FOwner.RemoveComponent(AComponent);
|
||||
ValidateRename(AComponent,'',AComponent.FName);
|
||||
Insert(AComponent);
|
||||
If csDesigning in FComponentState then
|
||||
AComponent.SetDesigning(true);
|
||||
|
Loading…
Reference in New Issue
Block a user