mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 09:53:20 +02:00
IDE: fixed crash when releasing non existing component palette select button
git-svn-id: trunk@38444 -
This commit is contained in:
parent
80bac85dcd
commit
d602e69411
@ -623,8 +623,10 @@ begin
|
||||
if PageIndex>=0 then begin
|
||||
CurPage:=Pages[PageIndex];
|
||||
CurBtn:=TSpeedButton(CurPage.SelectButton);
|
||||
CurPage.SelectButton:=nil;
|
||||
Application.ReleaseComponent(CurBtn);
|
||||
if CurBtn<>nil then begin
|
||||
CurPage.SelectButton:=nil;
|
||||
Application.ReleaseComponent(CurBtn);
|
||||
end;
|
||||
Pages[PageIndex].PageComponent:=nil;
|
||||
end;
|
||||
if FPageControl.Pages[i]=OldActivePage then
|
||||
|
Loading…
Reference in New Issue
Block a user