From cdf6f0bd8661229c3846cff12bf4f78fa94270d4 Mon Sep 17 00:00:00 2001 From: Kelly Campbell Date: Fri, 19 Jan 2001 18:33:47 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/fo/flow/Flow.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5