mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-17 15:50:34 +01:00
IconFinder: Fix imagelisteditor occasionally using only the smallest icon.
This commit is contained in:
parent
e77c73fbf8
commit
c59a6083cb
@ -886,11 +886,14 @@ begin
|
|||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
// Item without appendix
|
// Item without appendix
|
||||||
|
if ((item.Width = AWidth) and (item.Height = AHeight)) or ((AWidth = -1) and (AHeight = -1)) then
|
||||||
|
begin
|
||||||
Result := item;
|
Result := item;
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
Result := nil;
|
Result := nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user