lcl: fix TCustomImageList.AddLazarusResource (#0012017)

git-svn-id: trunk@16340 -
This commit is contained in:
paul 2008-09-01 01:27:12 +00:00
parent 6f910265a7
commit e67d502aa5

View File

@ -155,7 +155,10 @@ var
begin
Bmp := CreateBitmapFromLazarusResource(ResourceName);
if MaskColor <> clNone then
begin
Bmp.Mask(MaskColor);
Bmp.Transparent := True;
end;
Result := Add(Bmp, nil);
Bmp.Free;
end;