DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14729>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14729

can't merge more than 1027 times





------- Additional Comments From [EMAIL PROTECTED]  2002-11-22 01:15 -------
I have found a quick one-liner that can solve the problem, but couldn't figure 
out how to get CVS to create the proper patch file.  Could someone in the know 
upload this change please.  Thanks.

In package org.apache.poi.hssf.model, change the following method to:

public int addMergedRegion(int rowFrom, short colFrom, int rowTo,short colTo)
{
 //only 1027 entries can be packed into a single BIFF8 MergedCellsRecord
 if (merged == null || merged.getNumAreas() == 1027)
 ...

The if just had (merger == null) before.  This change causes a new 
MergeCellsRecord to be created (instead of a ContinueRecord - which would also 
solve the problem, but this is much easier to do) when there are too many 
merged areas in the current merged record.  I have tested it and it works.

Thanks,
Tony

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to