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:08:43 UTC

[Bug 22720] Exception occurs when deleting merged cells from cloned sheet

https://bz.apache.org/bugzilla/show_bug.cgi?id=22720

--- Comment #5 from Javen ONeal <ja...@gmail.com> ---
I'm fixing another bug to detect overlapping merged regions (not allowed by
Microsoft Excel), which breaks this unit test.

I'm assuming that two merged regions are overlapping is
coincidental/unintentional and doesn't change the meaning of this test if the
addresses are changed.

//Original code[1]
template.addMergedRegion(new Region(0, (short)0, 1, (short)2));
template.addMergedRegion(new Region(1, (short)0, 2, (short)2));

//Latest code
template.addMergedRegion(new CellRangeAddress(0, 1, 0, 2));
template.addMergedRegion(new CellRangeAddress(1, 2, 0, 2));

[1]
https://svn.apache.org/viewvc/jakarta/poi/trunk/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java?revision=353586&view=markup&pathrev=353586#l374
[2]
https://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java?revision=1704124&view=markup#l140

-- 
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