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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
