fpspreadsheet: Make ods reader skip the source table of an external reference

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6211 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2018-02-22 09:27:34 +00:00
parent 332d8efdd4
commit 0282943962

View File

@ -2537,6 +2537,15 @@ begin
TableNode := TableNode.NextSibling;
continue;
end;
// Tables with external references contain a copy of the external table
// having the filename as sheet name - which is not valid for fps.
// Since external references are not supported ATM we skip this table.
if TableNode.FindNode('table:table-source') <> nil then begin
TableNode := TableNode.NextSibling;
Continue;
end;
FWorkSheet := FWorkbook.AddWorksheet(GetAttrValue(TableNode, 'table:name'), true);
tablestyleName := GetAttrValue(TableNode, 'table:style-name');
// Read protection