mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-17 18:09:32 +02:00
MG: fixed initial designed control renaming
git-svn-id: trunk@1650 -
This commit is contained in:
parent
91bbcd7a92
commit
c4475a2116
@ -809,7 +809,11 @@ end;
|
||||
procedure TDesigner.ValidateRename(AComponent: TComponent;
|
||||
const CurName, NewName: string);
|
||||
Begin
|
||||
// check if contol is initialized
|
||||
if CurName='' then exit;
|
||||
// check if control is the form
|
||||
if AComponent=nil then AComponent:=FCustomForm;
|
||||
// consistency check
|
||||
if CurName<>AComponent.Name then
|
||||
writeln('WARNING: TDesigner.ValidateRename: OldComponentName="',CurName,'"');
|
||||
if Assigned(OnRenameComponent) then
|
||||
|
Loading…
Reference in New Issue
Block a user