Fixes bug introduced by rev 57164 #987f894152 if you add an image with size 32x32 to an imagelist and then an image with the same width but different height, it crashes (example size: 32x29)

git-svn-id: trunk@59507 -
This commit is contained in:
sekelsenmat 2018-11-10 19:20:59 +00:00
parent 1fc8129c6d
commit 42beb71090

View File

@ -2265,7 +2265,8 @@ begin
FI.Colors[X-SourceRect.Left, Y-SourceRect.Top] := C;
end;
if SourceRect.Right-SourceRect.Left=TargetWidth then
if (SourceRect.Right-SourceRect.Left=TargetWidth) and
(SourceRect.Bottom-SourceRect.Top=TargetHeight) then
ScFI := FI
else
begin