aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo
diff options
context:
space:
mode:
authorJordan Naftolin <jordan@apache.org>2000-07-19 17:18:28 +0000
committerJordan Naftolin <jordan@apache.org>2000-07-19 17:18:28 +0000
commite9773af2cda8207f89ffedc48e9789aeead16c8e (patch)
treef6c1cfe1f598f4e47ded9bea1e3f3dffb11347e3 /src/org/apache/fop/fo
parentc633c28b16f58d8c20e20c3fa0c7c571336b1049 (diff)
downloadxmlgraphics-fop-e9773af2cda8207f89ffedc48e9789aeead16c8e.tar.gz
xmlgraphics-fop-e9773af2cda8207f89ffedc48e9789aeead16c8e.zip
Fixed table overflow bug
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193528 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo')
-rw-r--r--src/org/apache/fop/fo/flow/TableRow.java15
1 files 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();
}