Bug 54533

Summary: Shifting rows does not shift the Zero Height flag
Product: POI Reporter: Didier Loiseau <didierloiseau+apache>
Component: HSSFAssignee: POI Developers List <dev>
Status: NEW ---    
Severity: normal CC: dominik.stadler
Priority: P2    
Version: 3.9-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   
Bug Depends on:    
Bug Blocks: 46742    
Attachments: JUnit test to demonstrate shifting of zero-height rows

Description Didier Loiseau 2013-02-06 15:36:18 UTC
Created attachment 29928 [details]
JUnit test to demonstrate shifting of zero-height rows

When using sheet.shiftRows, the Zero Height row flag remains on the old row positions.

I'm attaching a JUnit test that demonstrates this.
Comment 1 Dominik Stadler 2013-05-30 21:25:30 UTC
The same test succeeds with XSSF, I think the reason is that the zero-height state is not copied when the rows are moved, should be easy to fix if this is the case.
Comment 2 Dominik Stadler 2013-06-17 13:32:20 UTC
Unfortunately there are more issues with shifting, I think the whole approach might be slightly broken. It tries to copy contents of rows from one row the the next one, somehow this can cause more invalid states, e.g. grouped rows and their collapes/expanded states are kept per row and are not handled correctly right now...