mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-13 07:49:25 +02:00
IDE : prevent a crash in designer "Change Class" if new name does not exist
git-svn-id: trunk@40033 -
This commit is contained in:
parent
ed4f35fefa
commit
d79176d7d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user