fpspreadsheet: Improved format detection for user-defined file formats.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6762 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-12-18 09:43:08 +00:00
parent 1f072086f1
commit e65331e881

View File

@ -8716,6 +8716,9 @@ begin
// If not successful use formats defined by extension
fileFormats := GetSpreadFormatsFromFileName(faRead, AFileName);
if Length(fileformats) = 0 then
fileformats := GetSpreadFormats(faRead, [ord(sfExcel8)]);
// Remove already tested format
found := false;
i := 0;