mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 13:40:23 +02:00
LCL: TSpeedButton, TBitBtn: fix AV. Issue #33645
git-svn-id: trunk@57704 -
This commit is contained in:
parent
9e333da657
commit
2ef8957cd8
@ -87,7 +87,7 @@ procedure TCustomBitBtn.Notification(AComponent: TComponent;
|
||||
Operation: TOperation);
|
||||
begin
|
||||
inherited Notification(AComponent, Operation);
|
||||
if (Operation = opRemove) and (AComponent = FButtonGlyph.ExternalImages) then
|
||||
if (Operation = opRemove) and (FButtonGlyph <> nil) and (AComponent = FButtonGlyph.ExternalImages) then
|
||||
Images := nil;
|
||||
end;
|
||||
|
||||
|
@ -860,7 +860,7 @@ procedure TCustomSpeedButton.Notification(AComponent: TComponent;
|
||||
Operation: TOperation);
|
||||
begin
|
||||
inherited Notification(AComponent, Operation);
|
||||
if (Operation = opRemove) and (AComponent = FGlyph.ExternalImages) then
|
||||
if (Operation = opRemove) and (FGlyph<>nil) and (AComponent = FGlyph.ExternalImages) then
|
||||
Images := nil;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user