]> source.dussan.org Git - poi.git/commitdiff
Bug 26465: HSSF sheets with even row numbers are read incorrectly by MS Project.
authorGlen Stampoultzis <glens@apache.org>
Wed, 4 Aug 2004 00:16:12 +0000 (00:16 +0000)
committerGlen Stampoultzis <glens@apache.org>
Wed, 4 Aug 2004 00:16:12 +0000 (00:16 +0000)
Cause: Wrong lastrow entry in DimensionsRecord as written by
method org.apache.poi.hssf.model.Sheet.addRow(RowRecord)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353575 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/model/Sheet.java

index 1a44d6e57f5bf90d45a5ca501318cb11ce3634fd..705e367b6d51172de873408aeea0a0414af1f574 100644 (file)
@@ -1105,7 +1105,7 @@ public class Sheet implements Model
             log.log(POILogger.DEBUG, "addRow ");
         DimensionsRecord d = ( DimensionsRecord ) records.get(getDimsLoc());
 
-        if (row.getRowNumber() > d.getLastRow())
+        if (row.getRowNumber() >= d.getLastRow())
         {
             d.setLastRow(row.getRowNumber() + 1);
         }