IDE : prevent a crash in designer "Change Class" if new name does not exist

git-svn-id: trunk@40033 -
This commit is contained in:
martin 2013-01-29 23:50:00 +00:00
parent ed4f35fefa
commit d79176d7d4

View File

@ -269,6 +269,8 @@ var
begin
Result:=mrCancel;
if NewClass = nil then
exit;
if CompareText(APersistent.ClassName,NewClass.ClassName)=0 then begin
Result:=mrOk;
exit;