diff --git a/components/fpspreadsheet/fpsopendocument.pas b/components/fpspreadsheet/fpsopendocument.pas index 8c56e7bd2..d119d7da8 100755 --- a/components/fpspreadsheet/fpsopendocument.pas +++ b/components/fpspreadsheet/fpsopendocument.pas @@ -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);