From 924dd8ccef0c291cb9d9234e7a43ff44f73309a7 Mon Sep 17 00:00:00 2001 From: Karen Lease Date: Thu, 20 Sep 2001 21:01:18 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/fo/flow/Table.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/org/apache/fop/fo/flow/Table.java b/src/org/apache/fop/fo/flow/Table.java index cc8f5ac14..faeebd153 100644 --- a/src/org/apache/fop/fo/flow/Table.java +++ b/src/org/apache/fop/fo/flow/Table.java @@ -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)); -- 2.39.5