]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed count of static-cotent elements.
authorPeter Bernard West <pbwest@apache.org>
Wed, 21 Jan 2004 07:03:23 +0000 (07:03 +0000)
committerPeter Bernard West <pbwest@apache.org>
Wed, 21 Jan 2004 07:03:23 +0000 (07:03 +0000)
Modified for static-content subtree event buffering.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197231 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/flow/FoPageSequence.java

index c352c389525b10c2316422401ea213876de5fbd7..b11ef16e68d78d222474e9c80e9c64cb08abd47f 100644 (file)
@@ -162,10 +162,9 @@ public class FoPageSequence extends FONode {
                     (FObjectNames.STATIC_CONTENT, XmlEvent.DISCARD_W_SPACE))
                    != null) {
                 // Loop over remaining fo:static-content
-                if (firstStaticContent != -1)
+                if (firstStaticContent == -1)
                     firstStaticContent = numChildren();
                 new FoStaticContent(getFOTree(), this, (FoXmlEvent)ev);
-                ev = xmlevents.getEndElement(XmlEventReader.DISCARD_EV, ev);
                 namespaces.relinquishEvent(ev);
             }