* Correct default extension logic.

This commit is contained in:
Michaël Van Canneyt 2023-07-01 11:32:56 +02:00
parent 930e49590c
commit ca13ca2089

View File

@ -414,8 +414,8 @@ var p,fn : string;
r : integer;
begin
Result:='';
if (pos('.', afilename)=0) and (DefaultFontExtension<>'') then
fn := afilename + DefaultFontExtension
if (ExtractFileExt(afilename)='') and (DefaultExtension<>'') then
fn := afilename + DefaultExtension
else
fn := aFilename;
if FileExists(fn) then