From b53332f09149e17c49ba328046a13e4c67b54f9b Mon Sep 17 00:00:00 2001 From: Art Welch Date: Tue, 24 Apr 2001 19:23:10 +0000 Subject: [PATCH] For borders to be drawn properly on overflowed rows must process all children. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194223 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/TableRow.java | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/org/apache/fop/fo/flow/TableRow.java b/src/org/apache/fop/fo/flow/TableRow.java index 55b9bf4ea..a95c92a3f 100644 --- a/src/org/apache/fop/fo/flow/TableRow.java +++ b/src/org/apache/fop/fo/flow/TableRow.java @@ -398,7 +398,10 @@ public class TableRow extends FObj { // added by Hani Elabed 11/27/2000 boolean someCellDidNotLayoutCompletely = false; - for (int i = this.marker; i < numChildren; i++) { + // If it takes multiple calls to completely layout the row, we need to process + // all of the children (cells) not just those from the marker so that the borders + // will be drawn properly. + for (int i = 0; i < numChildren; i++) { TableCell cell = (TableCell) children.elementAt(i); // added by Hani Elabed 11/22/2000 @@ -433,15 +436,14 @@ public class TableRow extends FObj { // locate the first cell // that need to be laid out further - - for (int j = 0; j < numChildren; j++) { - CellState state = (CellState) cells.elementAt(j); - - if (! state.isLayoutComplete()) { - this.marker = j; - break; // out of for loop - } - } + //for (int j = 0; j < numChildren; j++) { + // CellState state = (CellState) cells.elementAt(j); + // + // if (! state.isLayoutComplete()) { + // this.marker = j; + // break; // out of for loop + // } + //} } else { // added on 11/28/2000, by Dresdner Bank, Germany if (spacer != null) { -- 2.39.5