aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2019-08-07 08:58:21 +0000
committerSimon Steiner <ssteiner@apache.org>2019-08-07 08:58:21 +0000
commitafdf427804303fe997a3928709fcf222e1d7244a (patch)
tree86f8548c7c8a92d615d0e09682dc6c28eac6ba41 /fop-core
parentaab147ec212f915afe68d3581e2571a99bd7dfd8 (diff)
downloadxmlgraphics-fop-afdf427804303fe997a3928709fcf222e1d7244a.tar.gz
xmlgraphics-fop-afdf427804303fe997a3928709fcf222e1d7244a.zip
FOP-2877: Table row was inside footer
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1864605 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableStepper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableStepper.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableStepper.java
index 1d41d6cf1..ff38d692e 100644
--- a/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableStepper.java
+++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableStepper.java
@@ -34,6 +34,7 @@ import org.apache.fop.layoutmgr.BreakElement;
import org.apache.fop.layoutmgr.Keep;
import org.apache.fop.layoutmgr.KnuthBlockBox;
import org.apache.fop.layoutmgr.KnuthBox;
+import org.apache.fop.layoutmgr.KnuthElement;
import org.apache.fop.layoutmgr.KnuthGlue;
import org.apache.fop.layoutmgr.KnuthPenalty;
import org.apache.fop.layoutmgr.LayoutContext;
@@ -275,7 +276,7 @@ public class TableStepper {
step = getNextStep();
if (penaltyOrGlueLen < 0) {
- if (step < 0) {
+ if (keep.getPenalty() == KnuthElement.INFINITE) {
returnList.add(new KnuthGlue(0, -penaltyOrGlueLen, 0, new Position(null), true));
} else {
returnList.add(new KnuthGlue(-penaltyOrGlueLen, 0, 0, new Position(null), true));