Bug 40853

Summary: Some of the outlines are collapsed, some of them are not
Product: POI Reporter: DeadWitch <fulgutza>
Component: HSSFAssignee: POI Developers List <dev>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P2    
Version: 3.0-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

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.