mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-06 15:18:16 +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