Bug 40853 - Some of the outlines are collapsed, some of them are not
Summary: Some of the outlines are collapsed, some of them are not
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-FINAL
Hardware: PC Windows XP
: P2 normal with 1 vote (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2006-10-31 09:36 UTC by DeadWitch
Modified: 2014-07-28 18:05 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description DeadWitch 2006-10-31 09:36:03 UTC
I've created two outlines and I'm trying to collapse both of them, but
only one is collapsed, the other one remains expanded. Both outlines have the
same starting row, but the ending row is different. I dont know what the problem
might be. I tried to give as parameter to the HssfShhet.setRowGroupCollapsed
different rows from those groups, but the problem remains.
Comment 1 mspeder 2007-12-17 17:49:56 UTC
I confirm the issue.
Problem is in collapseRow in RowRecordsAggregate.java .
findStartOfRowOutlineGroup finds the first row with the same level of grouping
as the input rowNumber.
But when writeHidden is called later on, only the first row is passed as
argument and so the orginal row level is now longer available. So writeHidden
only works on the inner group.
Apparently the same issue exists with columns grouping when inner and outer
groups have the same start column.
Comment 2 Dominik Stadler 2014-07-28 18:05:16 UTC
No update on this issue for a long time, there are likely changes in one of the later releases which make this work, therefore resolving this issue, please reopen this bug if it still happens with the latest version and provide some test-code and sample files so we can reproduce this issue on the latest version.