LCL imagelist: fixed range check error when editing empty image list

git-svn-id: trunk@15604 -
This commit is contained in:
tombo 2008-06-28 13:30:28 +00:00
parent d085144116
commit e27e614cbd

View File

@ -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)