mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 00:29:33 +02:00
* Component name can be empty
git-svn-id: trunk@7737 -
This commit is contained in:
parent
1ae31b4037
commit
a7a0e9a307
@ -283,7 +283,7 @@ Procedure TComponent.SetName(const NewName: TComponentName);
|
||||
|
||||
begin
|
||||
If FName=NewName then exit;
|
||||
If not IsValidIdent(NewName) then
|
||||
If (NewName<>'') and not IsValidIdent(NewName) then
|
||||
Raise EComponentError.CreateFmt(SInvalidName,[NewName]);
|
||||
If Assigned(FOwner) Then
|
||||
FOwner.ValidateRename(Self,FName,NewName)
|
||||
|
Loading…
Reference in New Issue
Block a user