From e126f7335d85f0507b016f28db616bbd1ef7b959 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Sat, 8 Nov 2003 14:30:01 +0000 Subject: [PATCH] Another fix, making Area Tree Renderers work again. Damn, when am I going to get it right? git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196996 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/apps/Driver.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/java/org/apache/fop/apps/Driver.java b/src/java/org/apache/fop/apps/Driver.java index 970a58dc2..a49c641c5 100644 --- a/src/java/org/apache/fop/apps/Driver.java +++ b/src/java/org/apache/fop/apps/Driver.java @@ -529,13 +529,6 @@ public class Driver implements LogEnabled { if (currentDocument == null) { currentDocument = new Document(this); } - /** LayoutStrategy is hard-wired for now, but needs to be made - accessible through the API and/or configuration */ - if (foInputHandler instanceof FOTreeHandler) { - if (currentDocument.getLayoutStrategy() == null) { - currentDocument.setLayoutStrategy(new LayoutManagerLS(currentDocument)); - } - } // TODO: - do this stuff in a better way // PIJ: I guess the structure handler should be created by the renderer. @@ -551,6 +544,13 @@ public class Driver implements LogEnabled { foInputHandler = new FOTreeHandler(currentDocument, true); } currentDocument.foInputHandler = foInputHandler; + /** LayoutStrategy is hard-wired for now, but needs to be made + accessible through the API and/or configuration */ + if (foInputHandler instanceof FOTreeHandler) { + if (currentDocument.getLayoutStrategy() == null) { + currentDocument.setLayoutStrategy(new LayoutManagerLS(currentDocument)); + } + } foInputHandler.enableLogging(getLogger()); -- 2.39.5