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
This commit is contained in:
Sergey Vladimirov 2011-10-24 16:48:28 +00:00
parent f1a2673950
commit 0874288ed4
2 changed files with 2 additions and 2 deletions

View File

@ -685,7 +685,7 @@ public class ExcelToFoConverter extends AbstractExcelConverter
final List<Element> emptyRowElements = new ArrayList<Element>(
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 );

View File

@ -622,7 +622,7 @@ public class ExcelToHtmlConverter extends AbstractExcelConverter
final List<Element> emptyRowElements = new ArrayList<Element>(
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 );