mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-14 13:52:39 +02:00
IDE: fixed uninitialized variable in TMainIDE.OnDesignerRenameComponent
git-svn-id: trunk@13502 -
This commit is contained in:
parent
ed73de5c00
commit
9261739e8f
@ -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:='';
|
||||
|
Loading…
Reference in New Issue
Block a user