mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-13 00:09:09 +02:00
+ Merged revision 3550
git-svn-id: branches/fixes_2_0@3551 -
This commit is contained in:
parent
3f79c47847
commit
68200e1606
@ -340,7 +340,7 @@ Procedure TComponent.ValidateRename(AComponent: TComponent;
|
||||
|
||||
begin
|
||||
//!! This contradicts the Delphi manual.
|
||||
If (AComponent<>Nil) and (CurName<>NewName) and (AComponent.Owner = Self) and
|
||||
If (AComponent<>Nil) and (CompareText(CurName,NewName)<>0) and (AComponent.Owner = Self) and
|
||||
(FindComponent(NewName)<>Nil) then
|
||||
raise EComponentError.Createfmt(SDuplicateName,[newname]);
|
||||
If (csDesigning in FComponentState) and (FOwner<>Nil) then
|
||||
|
Loading…
Reference in New Issue
Block a user