aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-04-01 10:02:43 +0000
committerJeremias Maerki <jeremias@apache.org>2007-04-01 10:02:43 +0000
commit5ac9b91bfbbe06b232c188ec2d0f0b150661ddb0 (patch)
treeb904db7c8ae563c8f5ef87ec4f5fb34b74d282ca /src/java/org/apache/fop/layoutmgr
parentb43f5fbd1e7407742233c4931f33c2546bd38c61 (diff)
downloadxmlgraphics-fop-5ac9b91bfbbe06b232c188ec2d0f0b150661ddb0.tar.gz
xmlgraphics-fop-5ac9b91bfbbe06b232c188ec2d0f0b150661ddb0.zip
Bugfix for keep-with-next inside tables:
Once a keep-with-next was set inside a table, the FO following the table would always be glued to the previous table. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524571 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr')
-rw-r--r--src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java
index 44a13af8b..c3e1a41da 100644
--- a/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/table/TableContentLayoutManager.java
@@ -235,6 +235,12 @@ public class TableContentLayoutManager implements PercentBaseContext {
if (!isSeparateBorderModel()) {
resolveNormalBeforeAfterBordersForRowGroup(rowGroup, iter);
}
+
+ //Reset keep-with-next when remaining inside the table.
+ //The context flag is only used to propagate keep-with-next to the outside.
+ //The clearing is ok here because createElementsForRowGroup already handles
+ //the keep when inside a table.
+ context.setFlags(LayoutContext.KEEP_WITH_NEXT_PENDING, false);
//Element list creation
createElementsForRowGroup(context, alignment, bodyType,