mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 23:37:58 +02:00
LCL: Prevent a crash in menu when setting bitmap after removing ImageIndex. Issue #41307.
This commit is contained in:
parent
5a078f10d6
commit
c897bdf3cc
@ -1641,7 +1641,7 @@ begin
|
||||
end
|
||||
else
|
||||
begin
|
||||
if (forced) or (ImgList = nil) or (ImageIndex = -1) then
|
||||
if forced or (ImgList = nil) then
|
||||
begin
|
||||
FreeAndNil(FBitmap);
|
||||
FBitmapIsValid := True;
|
||||
|
Loading…
Reference in New Issue
Block a user