MG: fixed initial designed control renaming

git-svn-id: trunk@1650 -
This commit is contained in:
lazarus 2002-04-29 06:42:52 +00:00
parent 91bbcd7a92
commit c4475a2116

View File

@ -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