Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1158

ClassCastException on right border in fo:inline

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Duplicate
    • 0.91
    • None
    • renderer/pdf
    • None
    • Operating System: other
      Platform: Other
    • 38882

    Description

      If there is text data after the end-tag of an fo:inline and this fo:inline has a
      border-right property set, then FOP crashes with java.lang.ClassCastException:
      org.apache.fop.layoutmgr.inline.KnuthInlineBox

      The problem does apply only to border-right (the borders of the other sides or
      fo:inline without borders are not affected).

      The problem does not occure if the end-tag of fo:inline is followed by a space
      character (but this really isn't a workaround, as the space is visible in the
      output). E.g.:

      BAD: "text</fo:inline>. Go on ..."
      GOOD: "text</fo:inline> and go on ..."

      Attachments

        1. inline-right-border.fo
          1 kB
          Franz Fackelmann

        Issue Links

          Activity

            People

              fop-dev@xmlgraphics.apache.org fop-dev
              fackel@dosco.de Franz Fackelmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: