pbwest      2002/11/13 15:36:18

  Modified:    src/org/apache/fop/fo/flow Tag: FOP_0-20-0_Alt-Design
                        FoTitle.java
  Log:
  Provide for FoPcdata children.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +9 -8      xml-fop/src/org/apache/fop/fo/flow/Attic/FoTitle.java
  
  Index: FoTitle.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Attic/FoTitle.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- FoTitle.java      13 Nov 2002 04:13:05 -0000      1.1.2.3
  +++ FoTitle.java      13 Nov 2002 23:36:17 -0000      1.1.2.4
  @@ -105,17 +105,18 @@
           do {
               try {
                   ev = xmlevents.expectOutOfLinePcdataOrInline();
  +                if (ev != null) {
  +                    // Generate the flow object
  +                    FObjects.fobjects.makeFlowObject
  +                                (foTree, this, ev, FONode.TITLE_SET);
  +                    if (ev.getFoType() != FObjectNames.PCDATA)
  +                        ev = xmlevents.getEndElement(ev);
  +                }
               } catch(UnexpectedStartElementException e) {
                   MessageHandler.logln
                           ("Ignoring unexpected Start Element: "
                                                            + ev.getQName());
                   ev = xmlevents.getStartElement();
  -                ev = xmlevents.getEndElement(ev);
  -            }
  -            if (ev != null) {
  -                // Generate the flow object
  -                FObjects.fobjects.makeFlowObject
  -                            (foTree, this, ev, FONode.TITLE_SET);
                   ev = xmlevents.getEndElement(ev);
               }
           } while (ev != null);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to