]> source.dussan.org Git - poi.git/commitdiff
distinguish physical number of rows and last row number
authorSergey Vladimirov <sergey@apache.org>
Mon, 24 Oct 2011 16:48:28 +0000 (16:48 +0000)
committerSergey Vladimirov <sergey@apache.org>
Mon, 24 Oct 2011 16:48:28 +0000 (16:48 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1188219 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java
src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java

index 71915d9ea350798022aacd3c03d8ae79729b7cd5..d0b8614d6a295ef0e02bc826ff980aa8b5779cc0 100644 (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 );
 
index e5ce39719f1f496b264c9a188ab82f8bad3bc4df..2854693069865e7337a09e86b3db632d58c0f973 100644 (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 );