mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-07 09:49:37 +01:00
fpvectorial: Fix format detection error due to ExtractFileExt returning an empty string if applied to an extension instead of a filename.
git-svn-id: trunk@52846 -
This commit is contained in:
parent
4f2a09c958
commit
1658e33d9d
@ -10033,7 +10033,7 @@ procedure TvVectorialDocument.WriteToFile(AFileName: string);
|
|||||||
var
|
var
|
||||||
lFormat: TvVectorialFormat;
|
lFormat: TvVectorialFormat;
|
||||||
begin
|
begin
|
||||||
lFormat := GetFormatFromExtension(ExtractFileExt(AFileName));
|
lFormat := GetFormatFromExtension(AFileName);
|
||||||
WriteToFile(AFileName, lFormat);
|
WriteToFile(AFileName, lFormat);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user