You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2002/12/01 15:42:04 UTC

cvs commit: xml-fop/src/org/apache/fop/fo/declarations FoDeclarations.java

pbwest      2002/12/01 06:42:04

  Modified:    src/org/apache/fop/fo/declarations Tag:
                        FOP_0-20-0_Alt-Design FoDeclarations.java
  Log:
  Applied pool.surrenderEvent().
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.3   +7 -5      xml-fop/src/org/apache/fop/fo/declarations/Attic/FoDeclarations.java
  
  Index: FoDeclarations.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/declarations/Attic/FoDeclarations.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- FoDeclarations.java	22 Nov 2002 02:17:22 -0000	1.1.2.2
  +++ FoDeclarations.java	1 Dec 2002 14:42:04 -0000	1.1.2.3
  @@ -78,14 +78,16 @@
                   throw new FOPException
                           ("No fo:color-profile in fo:declarations.");
               new FoColorProfile(foTree, this, ev);
  -            xmlevents.getEndElement(ev);
  +            ev = xmlevents.getEndElement(xmlevents.DISCARD_EV, ev);
  +            pool.surrenderEvent(ev);
               do {
                   ev = xmlevents.expectStartElement
                       (FObjectNames.COLOR_PROFILE, XMLEvent.DISCARD_W_SPACE);
                   if (ev == null) break; // No instance of these elements found
                   new FoColorProfile(foTree, this, ev);
                   // Flush the master event
  -                xmlevents.getEndElement(ev);
  +                ev = xmlevents.getEndElement(xmlevents.DISCARD_EV, ev);
  +                pool.surrenderEvent(ev);
               } while (true);
           } catch (NoSuchElementException e) {
               // Unexpected end of file
  
  
  

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