aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/fo/flow/Table.java
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2000-12-13 03:53:23 +0000
committerKeiron Liddle <keiron@apache.org>2000-12-13 03:53:23 +0000
commit9f32257ad872af34623768576a21bfd6c5b53f0c (patch)
tree8c8b0d2e0b05b3e9d0ba91c1e2a73f66de6e5b0e /src/org/apache/fop/fo/flow/Table.java
parent49b6731e47a1534f9cef1b409b7533404cf61a96 (diff)
downloadxmlgraphics-fop-9f32257ad872af34623768576a21bfd6c5b53f0c.tar.gz
xmlgraphics-fop-9f32257ad872af34623768576a21bfd6c5b53f0c.zip
makes sure that the header and footer are removed if no body fits
on a page git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193869 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/fo/flow/Table.java')
-rw-r--r--src/org/apache/fop/fo/flow/Table.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/apache/fop/fo/flow/Table.java b/src/org/apache/fop/fo/flow/Table.java
index 659adc177..daffbe5a3 100644
--- a/src/org/apache/fop/fo/flow/Table.java
+++ b/src/org/apache/fop/fo/flow/Table.java
@@ -244,6 +244,10 @@ public class Table extends FObj {
if ((status = fo.layout(areaContainer)).isIncomplete()) {
this.marker = i;
if (/*(i != 0) && */(status.getCode() == Status.AREA_FULL_NONE)) {
+ if(tableHeader != null)
+ tableHeader.removeLayout(areaContainer);
+ if(tableFooter != null)
+ tableFooter.removeLayout(areaContainer);
// status = new Status(Status.AREA_FULL_SOME);
}
//areaContainer.end();