klease      01/09/20 14:01:18

  Modified:    src/org/apache/fop/fo/flow Table.java
  Log:
  Only do findColumns one time, not on each new table area
  
  Revision  Changes    Path
  1.38      +5 -2      xml-fop/src/org/apache/fop/fo/flow/Table.java
  
  Index: Table.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Table.java,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- Table.java        2001/09/20 20:29:22     1.37
  +++ Table.java        2001/09/20 21:01:18     1.38
  @@ -1,5 +1,5 @@
   /*
  - * -- $Id: Table.java,v 1.37 2001/09/20 20:29:22 klease Exp $ --
  + * -- $Id: Table.java,v 1.38 2001/09/20 21:01:18 klease Exp $ --
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
  @@ -140,6 +140,7 @@
               if (breakBefore == BreakBefore.EVEN_PAGE) {
                   return new Status(Status.FORCE_PAGE_BREAK_EVEN);
               }
  +
           }
   
           if ((spaceBefore != 0) && (this.marker == 0)) {
  @@ -170,7 +171,9 @@
           int numChildren = this.children.size();
   
        // Set up the column vector
  -     findColumns(areaContainer);
  +     if (columns.size()==0) {
  +         findColumns(areaContainer);
  +     }
        // Now layout all the columns and get total offset
           areaContainer.setAllocationWidth( layoutColumns(areaContainer));
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to