mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 17:50:19 +02:00
LCL imagelist: fixed range check error when editing empty image list
git-svn-id: trunk@15604 -
This commit is contained in:
parent
d085144116
commit
e27e614cbd
@ -96,7 +96,7 @@ var
|
||||
DataSize: Integer;
|
||||
OldCount: Integer;
|
||||
begin
|
||||
if (AValue = nil) or (AValue=Self) then exit;
|
||||
if (AValue = nil) or (AValue=Self) or (AValue.FCount = 0) then exit;
|
||||
|
||||
AllocData(FCount + AValue.FCount);
|
||||
if (AValue.FWidth = FWidth) and (AValue.FHeight = FHeight)
|
||||
|
Loading…
Reference in New Issue
Block a user