mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 23:38: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
|
begin
|
||||||
Result:=mrCancel;
|
Result:=mrCancel;
|
||||||
|
if NewClass = nil then
|
||||||
|
exit;
|
||||||
if CompareText(APersistent.ClassName,NewClass.ClassName)=0 then begin
|
if CompareText(APersistent.ClassName,NewClass.ClassName)=0 then begin
|
||||||
Result:=mrOk;
|
Result:=mrOk;
|
||||||
exit;
|
exit;
|
||||||
|
Loading…
Reference in New Issue
Block a user