diff options
author | Keiron Liddle <keiron@apache.org> | 2000-12-13 03:53:23 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2000-12-13 03:53:23 +0000 |
commit | 9f32257ad872af34623768576a21bfd6c5b53f0c (patch) | |
tree | 8c8b0d2e0b05b3e9d0ba91c1e2a73f66de6e5b0e /src/org/apache/fop/fo/flow/Table.java | |
parent | 49b6731e47a1534f9cef1b409b7533404cf61a96 (diff) | |
download | xmlgraphics-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.java | 4 |
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(); |