Bug 59796 - XSSFTable.getRowCount off-by-one error
Summary: XSSFTable.getRowCount off-by-one error
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 3.15-dev
Hardware: PC All
: P2 minor (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-04 19:08 UTC by Javen O'Neal
Modified: 2016-07-04 19:17 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Javen O'Neal 2016-07-04 19:08:08 UTC
From bug 59795 comment 1
> I noticed that getRowCount returns toRow-fromRow. Shouldn't it be toRow-fromRow+1?

From bug 59795 comment 2
> Good catch, yes, I think it should.

XSSFTable.getRowCount returns 1 less than it should.
Currently returns -1 if ref is not set, otherwise returns to-from
Should be 0 if not set or to-from+1.
Comment 1 Javen O'Neal 2016-07-04 19:09:35 UTC
Fixed in r1751373.