From 8229908f29eb22784d4250d36d98868457a00072 Mon Sep 17 00:00:00 2001 From: Sergey Vladimirov Date: Mon, 24 Oct 2011 16:48:28 +0000 Subject: [PATCH] distinguish physical number of rows and last row number git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1188219 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hssf/converter/ExcelToFoConverter.java | 2 +- .../src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java b/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java index 71915d9ea3..d0b8614d6a 100644 --- a/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java +++ b/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java @@ -685,7 +685,7 @@ public class ExcelToFoConverter extends AbstractExcelConverter final List emptyRowElements = new ArrayList( physicalNumberOfRows ); int maxSheetColumns = 1; - for ( int r = 0; r < physicalNumberOfRows; r++ ) + for ( int r = sheet.getFirstRowNum(); r <= sheet.getLastRowNum(); r++ ) { HSSFRow row = sheet.getRow( r ); diff --git a/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java b/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java index e5ce39719f..2854693069 100644 --- a/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java +++ b/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java @@ -622,7 +622,7 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter final List emptyRowElements = new ArrayList( physicalNumberOfRows ); int maxSheetColumns = 1; - for ( int r = 0; r < physicalNumberOfRows; r++ ) + for ( int r = sheet.getFirstRowNum(); r <= sheet.getLastRowNum(); r++ ) { HSSFRow row = sheet.getRow( r ); -- 2.39.5