https://bz.apache.org/bugzilla/show_bug.cgi?id=65852

            Bug ID: 65852
           Summary: [PATCH] Column collapsed attribute is incorrectly set
           Product: POI
           Version: 5.2.0-FINAL
          Hardware: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: kildyushovam...@gmail.com
  Target Milestone: ---

Created attachment 38176
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=38176&action=edit
Diff file

When executing method Sheet.groupColumn() to an OOXML Excel document, the
"collapsed" attribute of any column in groups is always set with "true" value.

Example:

Sheet sheet = workbook.getSheetAt(sheetIndex);

sheet.setRowSumsBelow(false);
sheet.setRowSumsRight(false);

sheet.groupColumn(4, 10);
sheet.groupColumn(5, 7);
sheet.groupColumn(9, 10);

Result file is attached.

The error occurs in method setColumnAttributes of
org.apache.poi.xssf.usermodel.helpers.ColumnHelper. The existing line:

toCol.setCollapsed(fromCol.isSetCollapsed());

should be removed.

Diff file is attached.

This bug was reported earlier:
https://bz.apache.org/bugzilla/show_bug.cgi?id=60541

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to