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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to