You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2015/09/22 05:47:23 UTC
[Bug 58443] Corrupted workbook: sheet contains overlapping merged
regions
https://bz.apache.org/bugzilla/show_bug.cgi?id=58443
--- Comment #1 from Javen ONeal <ja...@gmail.com> ---
Created attachment 33128
--> https://bz.apache.org/bugzilla/attachment.cgi?id=33128&action=edit
patch to check for intersection when adding a merged region
Fixes:
* remove HSSFSheet.addMergedRegion(Region), which has been deprecated since Aug
2008
* modified H/XSSFSheet.addMergedRegion to check if candidate region overlaps
with an existing region, and throw an IllegalStateException if there is
overlap, and corresponding unit test
* add CellRangeAddressBase.intersects and corresponding unit test
* fixed several unit tests that unintentionally created overlapping merged
regions.
Note: this patch requires the fix for bug 58350 (attachment 33086).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org