mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-09 01:42:02 +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;
|
DataSize: Integer;
|
||||||
OldCount: Integer;
|
OldCount: Integer;
|
||||||
begin
|
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);
|
AllocData(FCount + AValue.FCount);
|
||||||
if (AValue.FWidth = FWidth) and (AValue.FHeight = FHeight)
|
if (AValue.FWidth = FWidth) and (AValue.FHeight = FHeight)
|
||||||
|
Loading…
Reference in New Issue
Block a user