From: Kelly Campbell Date: Fri, 19 Jan 2001 18:33:47 +0000 (+0000) Subject: Fixed bug reported by Cliff Harrison regarding order of static contents and X-Git-Tag: fop-0_17_0~86 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cdf6f0bd8661229c3846cff12bf4f78fa94270d4;p=xmlgraphics-fop.git Fixed bug reported by Cliff Harrison regarding order of static contents and fo:flow object. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193975 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/org/apache/fop/fo/flow/Flow.java b/src/org/apache/fop/fo/flow/Flow.java index 8b86bfef7..429ba47be 100644 --- a/src/org/apache/fop/fo/flow/Flow.java +++ b/src/org/apache/fop/fo/flow/Flow.java @@ -111,7 +111,8 @@ public class Flow extends FObj { // 001228, Number 406), confusion in spec section 6.4.5 about // multiplicity of fo:flow in XSL 1.0 is cleared up - one (1) // fo:flow per fo:page-sequence only. - if (!pageSequence.isFlowSet()) + + if (!pageSequence.isFlowSet() || !(this.name.equals("fo:flow"))) pageSequence.addFlow(this); else throw new FOPException("Only a single fo:flow permitted"