poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ser...@apache.org
Subject svn commit: r1188219 - in /poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter: ExcelToFoConverter.java ExcelToHtmlConverter.java
Date Mon, 24 Oct 2011 16:48:29 GMT
Author: sergey
Date: Mon Oct 24 16:48:28 2011
New Revision: 1188219

URL: http://svn.apache.org/viewvc?rev=1188219&view=rev
Log:
distinguish physical number of rows and last row number

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

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java?rev=1188219&r1=1188218&r2=1188219&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToFoConverter.java Mon
Oct 24 16:48:28 2011
@@ -685,7 +685,7 @@ public class ExcelToFoConverter extends 
         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 );
 

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java?rev=1188219&r1=1188218&r2=1188219&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hssf/converter/ExcelToHtmlConverter.java Mon
Oct 24 16:48:28 2011
@@ -622,7 +622,7 @@ public class ExcelToHtmlConverter extend
         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 );
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message