From de1255b13f15201dbba5d6c282cded7719e3dc8f Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Wed, 15 Mar 2006 09:54:04 +0000 Subject: Bugfix: Fixed a copy/paste error in the table layout code that caused wrong page break decisions when table-headers and/or table-footers are used. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@386025 13f79535-47bb-0310-9956-ffa450edef68 --- .../layoutmgr/table/TableContentLayoutManager.java | 2 +- status.xml | 4 ++ .../table-header_table-footer_3.xml | 77 ++++++++++++++++++++++ 3 files changed, 82 insertions(+), 1 deletion(-) create mode 100644 test/layoutengine/standard-testcases/table-header_table-footer_3.xml diff --git a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java index b08ccc1a7..9c3e89780 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java @@ -120,7 +120,7 @@ public class TableContentLayoutManager implements PercentBaseContext { /** @return the net footer height */ protected int getFooterNetHeight() { - return this.headerNetHeight; + return this.footerNetHeight; } /** @return the header element list */ diff --git a/status.xml b/status.xml index 579094916..efe61ea6d 100644 --- a/status.xml +++ b/status.xml @@ -27,6 +27,10 @@ + + Bugfix: Fixed a copy/paste error in the table layout code that caused wrong page + break decisions when table-headers and/or table-footers are used. + Bugfix: Fixed an NPE that was thrown when a table was used inside a footnote-body. diff --git a/test/layoutengine/standard-testcases/table-header_table-footer_3.xml b/test/layoutengine/standard-testcases/table-header_table-footer_3.xml new file mode 100644 index 000000000..28900405d --- /dev/null +++ b/test/layoutengine/standard-testcases/table-header_table-footer_3.xml @@ -0,0 +1,77 @@ + + + + + +

+ This test checks element list generation for table-header and table-footer, or more specifically + a copy/past error that was in the code (regression check). +

+
+ + + + + + + + + + + + + + + header + + + + + + + footer + + + + + + + cell1 + + + + + cell2 + + + + + + + + + + + + + + + + 3 + + +
-- cgit v1.2.3