jeremias 2003/11/08 06:30:01
Modified: src/java/org/apache/fop/apps Driver.java
Log:
Another fix, making Area Tree Renderers work again. Damn, when am I going to get it
right?
Revision Changes Path
1.47 +7 -7 xml-fop/src/java/org/apache/fop/apps/Driver.java
Index: Driver.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/apps/Driver.java,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- Driver.java 8 Nov 2003 14:00:02 -0000 1.46
+++ Driver.java 8 Nov 2003 14:30:01 -0000 1.47
@@ -529,13 +529,6 @@
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 @@
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());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]