From: William Victor Mote Date: Wed, 17 Sep 2003 16:25:47 +0000 (+0000) Subject: set the (default) LayoutStrategy only if it has not been set already X-Git-Tag: Root_Temp_KnuthStylePageBreaking~1087 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b4534950b66e5918961717d0b947c122d1901d0e;p=xmlgraphics-fop.git 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 --- 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 {