Hi,
We have noticed an error in our FO transforms when we upgraded to fop-0.93.
Platform: XP SP2, Java JDK 1.5.0_06.
Executing fop0.92 with the FO below produces the correct PDF.
Executing same FO with fop0.93 gives following error:
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
at java.util.ArrayList.set(ArrayList.java:337)
at
org.apache.fop.fo.flow.TableFObj.updateColumnIndex(TableFObj.java:160)
.....
This error seems to occurs because there is no <fo:table-cell
column-number="2"> on the first row and a number-rows-spanned="2" is applied to
the last <fo:table-cell> of row 1.
Is this a FOP0.93 bug/regression ?
Thanks,
Guillaume
Sample FO:
---------------------------------------------------------
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="content" page-width="210mm"
page-height="297mm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="content">
<fo:flow flow-name="xsl-region-body">
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-column column-width="100mm"/>
<fo:table-column column-width="proportional-column-width(1)"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="1pt solid black" column-number="1">
<fo:block>column 1</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid black" column-number="3"
number-rows-spanned="2">
<fo:block>column 3</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="1pt solid black" column-number="1">
<fo:block>column 1</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid black" column-number="2">
<fo:block>column 2</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------
Guillaume LEVRERO
This e-mail is intended only for the above addressee. It may contain privileged
information.
If you are not the addressee you must not copy, distribute, disclose or use any
of the information in it.
If you have received it in error please delete it and immediately notify the
sender.
Security Notice: all e-mail, sent to or from this address, may be accessed by
someone other than the recipient, for system management and security reasons.
This access is controlled under Regulation of security reasons.
This access is controlled under Regulation of Investigatory Powers Act 2000,
Lawful Business Practises.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]