mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 10:59:44 +01:00
fixed ExtractFileNameWithoutExt (fixes issue #1782)
git-svn-id: trunk@8834 -
This commit is contained in:
parent
2e81a8fee5
commit
18252b595d
@ -324,7 +324,7 @@ begin
|
|||||||
while (p>0) do begin
|
while (p>0) do begin
|
||||||
case Result[p] of
|
case Result[p] of
|
||||||
PathDelim: exit;
|
PathDelim: exit;
|
||||||
'.': Result:=copy(Result,p-1,length(Result));
|
'.': Result:=copy(Result,1, p-1);
|
||||||
else dec(p);
|
else dec(p);
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user