https://issues.apache.org/bugzilla/show_bug.cgi?id=55380
Bug ID: 55380
Summary: Adding conditional formatting gets stuck in endless
loop
Product: POI
Version: 3.9
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: HSSF
Assignee: [email protected]
Reporter: [email protected]
Adding conditional formatting with certain set of ranges gets stuck in endless
loop.
Test code to reproduce:
Workbook workbook = new HSSFWorkbook();
Sheet sheet = workbook.createSheet();
CellRangeAddress[] ranges = new CellRangeAddress[] {
CellRangeAddress.valueOf("C9:D30"), CellRangeAddress.valueOf("C7:C31")
};
ConditionalFormattingRule rule =
sheet.getSheetConditionalFormatting().createConditionalFormattingRule("$A$1>0");
sheet.getSheetConditionalFormatting().addConditionalFormatting(ranges, rule);
Debugging shows that code gets stuck in
org.apache.poi.hssf.record.cf.CellRangeUtil.mergeCellRanges(List) method on
repeated merging/unmerging regions.
--
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]