mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-02 15:42:08 +02:00
ideintf: if no graphic format was chosen in the imagelist editor save picture dialog and thus we have no file extension then use 'bmp'
git-svn-id: trunk@16400 -
This commit is contained in:
parent
f790ccc88c
commit
859315c62d
@ -304,6 +304,8 @@ begin
|
|||||||
if ExtractFileExt(FileName) = '' then
|
if ExtractFileExt(FileName) = '' then
|
||||||
begin
|
begin
|
||||||
Ext := SaveDialog.GetFilterExt;
|
Ext := SaveDialog.GetFilterExt;
|
||||||
|
if Ext = '' then
|
||||||
|
Ext := 'bmp';
|
||||||
if Ext <> '' then
|
if Ext <> '' then
|
||||||
FileName := FileName + '.' + Ext;
|
FileName := FileName + '.' + Ext;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user