poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 43901] New: - Last cell number in row is set incorrectly
Date Mon, 19 Nov 2007 12:12:37 GMT
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: dev@poi.apache.org
        ReportedBy: richard.evans@datanomic.com


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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message