https://bz.apache.org/bugzilla/show_bug.cgi?id=69727
Bug ID: 69727
Summary: XSSFSheet Wrong count when call removeMergedRegion and
addMergedRegion
Product: POI
Version: 5.4.1-FINAL
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
When we call XSSFSheet.removeMergedRegion(CellRangeAddress),
the count of CTMergeCells will not change;
Then if we call addMergedRegion.It's codes like this:
XSSFSheet.addMergedRegion(CellRangeAddress region, boolean validate){
XXX
long count = ctMergeCells.getCount();
if (count == 0) {
count=ctMergeCells.sizeOfMergeCellArray();
} else {
count++;
}
// also adjust the number of merged regions overall
ctMergeCells.setCount(count);
}
it use the wrong count,because the count is not change when we call
removeMergedRegion.
--
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]