You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2001/03/13 19:31:25 UTC

[Bug 964] New - FOP 0.17 throws exception with basic-link in xsl-region-before/after

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

*** shadow/964	Tue Mar 13 10:31:25 2001
--- shadow/964.tmp.6625	Tue Mar 13 10:31:25 2001
***************
*** 0 ****
--- 1,75 ----
+ +============================================================================+
+ | FOP 0.17 throws exception with basic-link in xsl-region-before/after       |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 964                         Product: Fop                     |
+ |       Status: NEW                         Version: 0.17                    |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Linux                   |
+ |     Priority:                           Component: pdf renderer            |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: camk@channelpoint.com,fop-dev@xml.apache.org                 |
+ |  Reported By: jspecker@yahoo.de                                            |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Code segment
+ 
+       <fo:static-content flow-name="xsl-region-after">
+         <fo:block text-align="start">
+           <fo:leader
+             leader-pattern="rule"
+             rule-thickness="2pt"
+             leader-length="100%"
+             start-indent="1.0cm"
+             end-indent="1.0cm"
+             background-color="white"
+             color="blue" />
+         </fo:block>
+         <fo:table border-width="1pt">
+           <fo:table-column column-width="8cm"/>
+           <fo:table-column column-width="8cm"/>
+           <fo:table-body>
+             <fo:table-row>
+               <fo:table-cell display-align="before">
+                 <fo:block text-align="start">
+                   <xsl:text>Region After - start cell</xsl:text>
+                 </fo:block>
+               </fo:table-cell>
+               <fo:table-cell display-align="before">
+                 <fo:block text-align="end">
+                   <fo:basic-link external-destination="http://bla.org">
+                     <xsl:text>Region After - end cell</xsl:text>
+                   </fo:basic-link>
+                 </fo:block>
+               </fo:table-cell>
+             </fo:table-row>
+           </fo:table-body>
+         </fo:table>
+       </fo:static-content>
+ 
+ throws exception:
+ 
+ formatting FOs into areas
+  [1FATAL ERROR: -1 < 0
+ java.lang.ArrayIndexOutOfBoundsException: -1 < 0
+         at java.util.Vector.elementAt(Vector.java:451)
+         at
+ org.apache.fop.layout.BodyAreaContainer.getCurrentColumnArea(BodyAreaContainer.java:387)
+         at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:120)
+         at org.apache.fop.fo.flow.Block.layout(Block.java:367)
+         at org.apache.fop.fo.flow.TableCell.layout(TableCell.java:286)
+         at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:479)
+         at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:212)
+         at org.apache.fop.fo.flow.Table.layout(Table.java:270)
+         at org.apache.fop.fo.flow.StaticContent.layout(StaticContent.java:116)
+         at
+ org.apache.fop.fo.pagination.PageSequence.layoutStaticContent(PageSequence.java:402)
+         at
+ org.apache.fop.fo.pagination.PageSequence.formatStaticContent(PageSequence.java:388)
+         at
+ org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:296)
+         at org.apache.fop.fo.pagination.Root.format(Root.java:128)
+ 
+ Same code on FOP 0.16 doesn't. Something wrong w/ my code?

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org