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

http://issues.apache.org/bugzilla/show_bug.cgi?id=41503

           Summary: IndexOutOfBoundsException when missing fo:table-cell
                    column-number and number-rows-spanned used in the same
                    fo:table
           Product: Fop
           Version: 0.93
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: regression
          Priority: P2
         Component: general
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


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 run-time exception:

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

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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to