mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 00:20:39 +01:00
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:
parent
1fc8129c6d
commit
42beb71090
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user