You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2004/01/27 16:26:20 UTC
DO NOT REPLY [Bug 26465] New: -
[PATCH] wrong lastrow entry
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26465>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26465
[PATCH] wrong lastrow entry
Summary: [PATCH] wrong lastrow entry
Product: POI
Version: 2.0-dev
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: HSSF
AssignedTo: poi-dev@jakarta.apache.org
ReportedBy: Andrea.Nenni@methodpark.de
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):
if (row.getRowNumber() > d.getLastRow())
{
d.setLastRow(row.getRowNumber() + 1);
}
Because of the ">" comparism, the lastrow entry will only be
set on every second call to the method. Bugfix: Use ">=" for
the comparism.
---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org