From: Sergey Vladimirov Date: Mon, 24 Oct 2011 16:48:28 +0000 (+0000) Subject: distinguish physical number of rows and last row number X-Git-Tag: REL_3_8_BETA5~54 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8229908f29eb22784d4250d36d98868457a00072;p=poi.git 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 --- 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 );