* fixed ForceExtension() after r16905 in case the input did not have an

exitension (it cut off the last character of the filename in that case)

git-svn-id: trunk@16911 -
This commit is contained in:
Jonas Maebe 2011-02-12 21:13:51 +00:00
parent 1868afedc8
commit e8f654ffa5

View File

@ -296,7 +296,7 @@ begin
while (j>0) and (Hstr[j]<>'.') do
dec(j);
if j=0 then
j:=length(Hstr);
j:=length(Hstr)+1;
if Ext<>'' then
ForceExtension:=Copy(Hstr,1,j-1)+'.'+Ext
else