You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by vm...@apache.org on 2003/09/17 18:25:47 UTC
cvs commit: xml-fop/src/java/org/apache/fop/apps Driver.java
vmote 2003/09/17 09:25:47
Modified: src/java/org/apache/fop/apps Driver.java
Log:
set the (default) LayoutStrategy only if it has not been set already
Revision Changes Path
1.40 +3 -1 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.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- Driver.java 10 Sep 2003 06:25:36 -0000 1.39
+++ Driver.java 17 Sep 2003 16:25:47 -0000 1.40
@@ -581,7 +581,9 @@
/** 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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org