poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 55380] New: Adding conditional formatting gets stuck in endless loop
Date Wed, 07 Aug 2013 18:29:59 GMT
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: dev@poi.apache.org
          Reporter: y.shahun@gmail.com

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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message