fpspreadsheet: Fix missing repeated cells when reading ods file (bug #0027389)

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3919 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2015-01-31 20:37:44 +00:00
parent 5d1c4ec7c7
commit 8916945ca1

View File

@ -1921,7 +1921,8 @@ var
rowStyle: TRowStyleData;
rowHeight: Single;
autoRowHeight: Boolean;
i: Integer;
i, n: Integer;
cell: PCell;
begin
rowsRepeated := 0;
row := 0;
@ -2018,6 +2019,14 @@ begin
paramColsRepeated := GetAttrValue(cellNode, 'table:number-columns-repeated');
if paramColsRepeated = '' then paramColsRepeated := '1';
n := StrToInt(paramColsRepeated);
if n > 1 then
begin
cell := FWorksheet.FindCell(row, col);
if cell <> nil then
for i:=1 to n-1 do
FWorksheet.CopyCell(row, col, row, col+i);
end;
end
else
if nodeName = 'table:covered-table-cell' then