Bug 44243 - Inner group not created if ends in same row as the outer group
Summary: Inner group not created if ends in same row as the outer group
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.0-FINAL
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-15 05:28 UTC by Shinobi
Modified: 2008-01-16 01:45 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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