You've already forked lazarus-ccr
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:
@@ -2537,6 +2537,15 @@ begin
|
|||||||
TableNode := TableNode.NextSibling;
|
TableNode := TableNode.NextSibling;
|
||||||
continue;
|
continue;
|
||||||
end;
|
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);
|
FWorkSheet := FWorkbook.AddWorksheet(GetAttrValue(TableNode, 'table:name'), true);
|
||||||
tablestyleName := GetAttrValue(TableNode, 'table:style-name');
|
tablestyleName := GetAttrValue(TableNode, 'table:style-name');
|
||||||
// Read protection
|
// Read protection
|
||||||
|
Reference in New Issue
Block a user