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

Created an attachment (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

I convert it to PDF with

fop -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(
        at org.apache.fop.cli.InputHandler.renderTo(
        at org.apache.fop.cli.Main.startFOP(
        at org.apache.fop.cli.Main.main(

If I remove either the inline elements or the text-align attribute the
exception goes away

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to