https://issues.apache.org/bugzilla/show_bug.cgi?id=48806
Summary: Nested inline elements with text-align attribute cause
an Exception
Product: Fop
Version: 0.95
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: pdf
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=25049)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25049)
Sample FO file that triggers the bug
I am using FOP 0.95 (latest stable at the time of writing) and attached FO
file.
I convert it to PDF with
fop -fo exception.fo sample.PDF
Expected output:
A PDF file
Actual output
The following exception:
java.lang.ClassCastException: org.apache.fop.layoutmgr.LeafPosition cannot be
cast to org.apache.fop.layoutmgr.NonLeafPosition
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125)
at org.apache.fop.cli.Main.startFOP(Main.java:166)
at org.apache.fop.cli.Main.main(Main.java:197)
If I remove either the inline elements or the text-align attribute the
exception goes away
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.