mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 00:37:11 +01:00
ide: don't treat xpm as TBitmap anymore
git-svn-id: trunk@15504 -
This commit is contained in:
parent
ad0c55e479
commit
470aee3c44
@ -206,7 +206,7 @@ begin
|
||||
// Paul: can it be not TBitmap at all?
|
||||
if (ABitmap is TBitmap) then
|
||||
begin
|
||||
if ((CompareText(Ext, '.xpm') = 0) or (CompareText(Ext, '.bmp') = 0)) then
|
||||
if (CompareText(Ext, '.bmp') = 0) then
|
||||
ABitmap.LoadFromFile(TheDialog.FileName)
|
||||
else
|
||||
ABitmap.Assign(TheDialog.Preview.Picture.Graphic);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user