diff options
author | Vincent Hennebert <vhennebert@apache.org> | 2007-04-26 14:20:04 +0000 |
---|---|---|
committer | Vincent Hennebert <vhennebert@apache.org> | 2007-04-26 14:20:04 +0000 |
commit | 975a67c11687c31f0fa075afbb9aea00a63d0e58 (patch) | |
tree | 37130b24a4d19f6ff95933d2c1c68b67f9a071b6 /src/java/org/apache/fop | |
parent | f2b3555501e171b5a53d68a56066d440cc71d2e4 (diff) | |
download | xmlgraphics-fop-975a67c11687c31f0fa075afbb9aea00a63d0e58.tar.gz xmlgraphics-fop-975a67c11687c31f0fa075afbb9aea00a63d0e58.zip |
Make keep-with-next and keep-with-previous work on fo:table
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@532754 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java index 00ecb01d2..2d305d5fa 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java @@ -323,6 +323,12 @@ public class TableLayoutManager extends BlockStackingLayoutManager } addKnuthElementsForSpaceAfter(returnList, alignment); addKnuthElementsForBreakAfter(returnList, context); + if (mustKeepWithNext()) { + context.setFlags(LayoutContext.KEEP_WITH_NEXT_PENDING); + } + if (mustKeepWithPrevious()) { + context.setFlags(LayoutContext.KEEP_WITH_PREVIOUS_PENDING); + } setFinished(true); resetSpaces(); return returnList; |