fpspreadsheet: Fix "rows-repeated" error in ods introduced in prev commit

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3303 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2014-07-09 21:53:41 +00:00
parent 63283c100a
commit db24ac3a9b

View File

@ -2783,11 +2783,9 @@ begin
// Look for empty rows with the same style, they need the "number-rows-repeated" element.
rowsRepeated := 1;
if (ASheet.GetFirstCellOfRow(r) = nil) then begin
// if ASheet.GetCellCountInRow(r) = 0 then begin
rr := r + 1;
while (rr <= lastRow) do begin
if ASheet.GetFirstCellOfRow(rr) = nil then begin
// if ASheet.GetCellCountInRow(rr) > 0 then begin
if ASheet.GetFirstCellOfRow(rr) <> nil then begin
break;
end;
h1 := ASheet.GetRowHeight(rr);