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] - Last cell number in row is set incorrectly
Date Wed, 09 Jan 2008 11:25:36 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


richard.evans@datanomic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




------- Additional Comments From richard.evans@datanomic.com  2008-01-09 03:25 -------
I'm sorry to disagree, but the Javadoc for HSSFRow.getLastCellNum() says:

public short getLastCellNum()

    gets the number of the last cell contained in this row PLUS ONE.

    Returns:
        short representing the last logical cell in the row PLUS ONE, or -1 if
the row does not contain any cells.

I understand that cell numbers are zero based, but the documentation does say
PLUS ONE.  So if there are three cells, with numbers 0, 1 and 2, I would expect
that getLastCellNum() should return 3, not 2.

If you read a three-column XLS file created in Excel, you DO get 3 as the result
of getLastCellNum().


-- 
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