mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-05 18:47:54 +02:00
* Correct default extension logic.
This commit is contained in:
parent
930e49590c
commit
ca13ca2089
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user