DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43901>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=43901

           Summary: Last cell number in row is set incorrectly
           Product: POI
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P2
         Component: HSSF
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


If you write an XLS file using POI, and then read it back,
HSSFRow.getLastCellNum() returns the wrong value.

For example, if you write three columns to the file, and then read it back,
getLastCellNum() returns 2, not 3.  The method should return the last cell
number PLUS 1.

The problem is that RowRecord.setLastCol() is called incorrectly in
HSSFRow.addCell.  It is called with the last cell number, not the last cell
number PLUS 1.

This seems to be exactly the symptom reported in bug 14890, which was rejected
as an error in the test code.

See attached test case.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to