From e9773af2cda8207f89ffedc48e9789aeead16c8e Mon Sep 17 00:00:00 2001 From: Jordan Naftolin Date: Wed, 19 Jul 2000 17:18:28 +0000 Subject: [PATCH] Fixed table overflow bug git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193528 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/fo/flow/TableRow.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/org/apache/fop/fo/flow/TableRow.java b/src/org/apache/fop/fo/flow/TableRow.java index 52396cbe3..f876b5997 100644 --- a/src/org/apache/fop/fo/flow/TableRow.java +++ b/src/org/apache/fop/fo/flow/TableRow.java @@ -197,9 +197,10 @@ public class TableRow extends FObj { if ((i != 0) && (status.getCode() == Status.AREA_FULL_NONE)) { status = new Status(Status.AREA_FULL_SOME); } - area.addChild(areaContainer); - //areaContainer.end(); - area.addDisplaySpace(areaContainer.getHeight()); + + resetMarker(); + area.removeChild(areaContainer); + return status; } @@ -231,6 +232,14 @@ public class TableRow extends FObj { return new Status(Status.OK); } + public void resetMarker() { + this.marker = START; + int numChildren = this.children.size(); + for (int i = 0; i < numChildren; i++) { + ((FONode) children.elementAt(i)).resetMarker(); + } + } + public int getAreaHeight() { return areaContainer.getHeight(); } -- 2.39.5