From b4534950b66e5918961717d0b947c122d1901d0e Mon Sep 17 00:00:00 2001 From: William Victor Mote Date: Wed, 17 Sep 2003 16:25:47 +0000 Subject: [PATCH] set the (default) LayoutStrategy only if it has not been set already git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196919 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/apps/Driver.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/apps/Driver.java b/src/java/org/apache/fop/apps/Driver.java index 6261b4ec7..108b054e5 100644 --- a/src/java/org/apache/fop/apps/Driver.java +++ b/src/java/org/apache/fop/apps/Driver.java @@ -581,7 +581,9 @@ public class Driver implements LogEnabled { /** LayoutStrategy is hard-wired for now, but needs to be made accessible through the API and/or configuration */ if (foInputHandler instanceof FOTreeHandler) { - currentDocument.setLayoutStrategy(new LayoutManagerLS(currentDocument)); + if (currentDocument.getLayoutStrategy() == null) { + currentDocument.setLayoutStrategy(new LayoutManagerLS(currentDocument)); + } } treeBuilder.foTreeControl = currentDocument; try { -- 2.39.5