Bug 54533 - Shifting rows does not shift the Zero Height flag
Summary: Shifting rows does not shift the Zero Height flag
Status: NEW
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.9-FINAL
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks: 46742
  Show dependency tree
 
Reported: 2013-02-06 15:36 UTC by Didier Loiseau
Modified: 2015-10-29 09:33 UTC (History)
1 user (show)



Attachments
JUnit test to demonstrate shifting of zero-height rows (1.22 KB, text/x-java)
2013-02-06 15:36 UTC, Didier Loiseau
Details

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