https://issues.apache.org/bugzilla/show_bug.cgi?id=56958
Bug ID: 56958
Summary: XSSFSheet.validateArrayFormulas incorrect range
intersection check
Product: POI
Version: 3.11-dev
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
This method checks
if (arrayRange.getNumberOfCells() > 1 &&
( arrayRange.isInRange(region.getFirstRow(), region.getFirstColumn()) ||
arrayRange.isInRange(region.getFirstRow(), region.getFirstColumn())) ){
....
}
Obviously, check arrayRange.isInRange(region.getFirstRow(),
region.getFirstColumn() twice does not look intentional.
This should *probably* be:
if (arrayRange.getNumberOfCells() > 1 &&
( arrayRange.isInRange(region.getFirstRow(), region.getFirstColumn()) ||
arrayRange.isInRange(region.getLastRow(), region.getLastColumn())) ){
to check if the region intersects with the region.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]