From 4491924db980075b31111879bc145489ac0c8db8 Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Wed, 4 Aug 2004 00:16:12 +0000 Subject: [PATCH] Bug 26465: HSSF sheets with even row numbers are read incorrectly by MS Project. 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/hssf/model/Sheet.java b/src/java/org/apache/poi/hssf/model/Sheet.java index 1a44d6e57f..705e367b6d 100644 --- a/src/java/org/apache/poi/hssf/model/Sheet.java +++ b/src/java/org/apache/poi/hssf/model/Sheet.java @@ -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); } -- 2.39.5