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
This commit is contained in:
Glen Stampoultzis 2004-08-04 00:16:12 +00:00
parent 6a753e13ea
commit 2943c5a8e5

View 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);
}