https://issues.apache.org/bugzilla/show_bug.cgi?id=55076
Bug ID: 55076
Summary: collapsing column groups only hides the first column
Product: POI
Version: 3.9
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
If you are using column groups and then call collapse(), only the first column
of the group is hidden, the others are still visible.
This happens in XSSF and SXSSF.
As far as I understand the POI code, the issue seems to be that the grouping of
columns adds an entry e. g. for a three column group
<col min="10" max=12" ... />
to the sheet columns.
Then we set column widths in our code, which splits this entry into three, each
for one column with identical min and max attributes. But the new ones are
inserted at the begin of the list, not sorted by column number.
And the collapse() code seems to search only forward in the list after having
found the first column wen it sets the hidden="1" attribute.
--
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]