Bug 44243

Summary: Inner group not created if ends in same row as the outer group
Product: POI Reporter: Shinobi <shinobi-warrior>
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 Shinobi 2008-01-15 05:28:45 UTC
HSSFSheet.groupRow(..):

Inner group is not created if the outer group end on the same row.
Order of creating is irrelevant.

e.g.
 sheet.groupRow(2, 10);  //outer
 sheet.groupRow(4,  6);  //first inner (created)
 sheet.groupRow(8, 10);  //second inner (NOT CREATED)

It seems there is a check, if the two groups ends with the same (possible begins
too) the inner group is not created. 
Excel allows such a behaviour.
The main line is above of the grouping, in my testcases.
Comment 1 Shinobi 2008-01-16 00:43:25 UTC
i had a look at the code, and found that the outline level is stored in the row.
but excel can create groups ending on the same row, so multiple outline levels
have to be stored.
i think, the grouping information in excel is only stored in the sheet and not
in the row