Bug 59796

Summary: XSSFTable.getRowCount off-by-one error
Product: POI Reporter: Javen O'Neal <onealj>
Component: XSSFAssignee: POI Developers List <dev>
Severity: minor    
Priority: P2    
Version: 3.15-dev   
Target Milestone: ---   
Hardware: PC   
OS: All   

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.