IDE: fixed uninitialized variable in TMainIDE.OnDesignerRenameComponent

git-svn-id: trunk@13502 -
This commit is contained in:
mattias 2007-12-28 12:22:55 +00:00
parent ed73de5c00
commit 9261739e8f

View File

@ -12167,8 +12167,6 @@ var
end;
// check if keyword
BeginCodeTool(ADesigner,ActiveSrcEdit,ActiveUnitInfo,[ctfSwitchToFormSource]);
ActiveUnitInfo:=Project1.UnitWithComponent(ADesigner.LookupRoot);
if CodeToolBoss.IsKeyWord(ActiveUnitInfo.Source,AName) then
raise Exception.Create(Format(lisComponentNameIsKeyword, ['"', AName, '"']
));
@ -12336,6 +12334,9 @@ begin
exit;
end;
BeginCodeTool(ADesigner,ActiveSrcEdit,ActiveUnitInfo,[ctfSwitchToFormSource]);
ActiveUnitInfo:=Project1.UnitWithComponent(ADesigner.LookupRoot);
OldName:=AComponent.Name;
OldClassName:=AComponent.ClassName;
NewClassName:='';