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

--- Comment #5 from Javen ONeal <javenon...@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-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to