Browse Source

Only do findColumns one time, not on each new table area


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194472 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_20_3
Karen Lease 23 years ago
parent
commit
924dd8ccef
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      src/org/apache/fop/fo/flow/Table.java

+ 4
- 1
src/org/apache/fop/fo/flow/Table.java View File

@@ -140,6 +140,7 @@ public class Table extends FObj {
if (breakBefore == BreakBefore.EVEN_PAGE) {
return new Status(Status.FORCE_PAGE_BREAK_EVEN);
}

}

if ((spaceBefore != 0) && (this.marker == 0)) {
@@ -170,7 +171,9 @@ public class Table extends FObj {
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));


Loading…
Cancel
Save