From c048da6b6826f6ad819680c5316b135d34ff7a53 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Thu, 15 Dec 2005 13:04:29 +0000 Subject: [PATCH] Fixed a bug where the area for a finished cell that is broken over pages was created once for each row it was spanned over instead of only once. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@357008 13f79535-47bb-0310-9956-ffa450edef68 --- .../table/TableContentLayoutManager.java | 3 +- status.xml | 4 + .../table-cell_page-break_span.xml | 91 +++++++++++++++++++ 3 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 test/layoutengine/standard-testcases/table-cell_page-break_span.xml diff --git a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java index 511c8559a..6847021f1 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java @@ -916,7 +916,8 @@ public class TableContentLayoutManager implements PercentBaseContext { if (gu == null && !currentGU.isEmpty() && currentGU.getColSpanIndex() == 0 - && currentGU.isLastGridUnitColSpan()) { + && currentGU.isLastGridUnitColSpan() + && (forcedFlush || currentGU.isLastGridUnitRowSpan())) { gu = currentGU.getPrimary(); } if (gu != null) { diff --git a/status.xml b/status.xml index 958eebd8b..b8092d0f2 100644 --- a/status.xml +++ b/status.xml @@ -27,6 +27,10 @@ + + Fixed a bug where the area for a finished cell that is broken over pages was + created once for each row it was spanned over instead of only once. + Added checks that warn about tables and block-containers that are wider than the available content area. diff --git a/test/layoutengine/standard-testcases/table-cell_page-break_span.xml b/test/layoutengine/standard-testcases/table-cell_page-break_span.xml new file mode 100644 index 000000000..406cd1946 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_page-break_span.xml @@ -0,0 +1,91 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: page break. +

+
+ + + + + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + + cell4a + cell4b + cell4c + cell4d + cell4e + cell4f + cell4g + + + + + + cell5 + + + + + cell6 + + + + + + + + + + + + + + + + + + + +
-- 2.39.5