aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArt Welch <artw@apache.org>2001-04-24 19:23:10 +0000
committerArt Welch <artw@apache.org>2001-04-24 19:23:10 +0000
commitb53332f09149e17c49ba328046a13e4c67b54f9b (patch)
tree868077187c16c2bf7ea04a49ded6e8b2666f0521
parent5532b3e77bc639e30d17d19de31c2e6390c9db7d (diff)
downloadxmlgraphics-fop-b53332f09149e17c49ba328046a13e4c67b54f9b.tar.gz
xmlgraphics-fop-b53332f09149e17c49ba328046a13e4c67b54f9b.zip
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
-rw-r--r--src/org/apache/fop/fo/flow/TableRow.java22
1 files 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) {