mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
parent
39e5f39db5
commit
3e6578f18e
1 changed files with 2 additions and 1 deletions
|
|
@ -402,7 +402,8 @@ end;
|
|||
function StretchBitmap(var bmBitmap : Graphics.TBitmap; iIconSize : Integer;
|
||||
clBackColor : TColor; bFreeAtEnd : Boolean = False) : Graphics.TBitmap;
|
||||
begin
|
||||
if (iIconSize <> bmBitmap.Height) or (iIconSize <> bmBitmap.Width) then
|
||||
if (bmBitmap.Height > 0) and (bmBitmap.Width > 0) and
|
||||
((iIconSize <> bmBitmap.Height) or (iIconSize <> bmBitmap.Width)) then
|
||||
begin
|
||||
Result := Graphics.TBitMap.Create;
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue