]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
set the (default) LayoutStrategy only if it has not been set already
authorWilliam Victor Mote <vmote@apache.org>
Wed, 17 Sep 2003 16:25:47 +0000 (16:25 +0000)
committerWilliam Victor Mote <vmote@apache.org>
Wed, 17 Sep 2003 16:25:47 +0000 (16:25 +0000)
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

index 6261b4ec7cb23e33851259a9af4f40af4164141b..108b054e59f52a8d67444bf14dc893ae6c59ee72 100644 (file)
@@ -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 {