aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-11-08 14:30:01 +0000
committerJeremias Maerki <jeremias@apache.org>2003-11-08 14:30:01 +0000
commite126f7335d85f0507b016f28db616bbd1ef7b959 (patch)
tree9c2a267c52d1632f5845d8543f650bccc8fc5b3e /src/java
parenta7b3b35dd6c78fd7e3aeabca6884f88834e77618 (diff)
downloadxmlgraphics-fop-e126f7335d85f0507b016f28db616bbd1ef7b959.tar.gz
xmlgraphics-fop-e126f7335d85f0507b016f28db616bbd1ef7b959.zip
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
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/apps/Driver.java14
1 files 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());