diff options
Diffstat (limited to 'fop-core/src')
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableStepper.java | 6 |
1 files changed, 5 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 ff38d692e..136f9c4e3 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 @@ -277,7 +277,11 @@ public class TableStepper { if (penaltyOrGlueLen < 0) { if (keep.getPenalty() == KnuthElement.INFINITE) { - returnList.add(new KnuthGlue(0, -penaltyOrGlueLen, 0, new Position(null), true)); + if (boxLen > -penaltyOrGlueLen && boxLen < maxRemainingHeight) { + returnList.add(new KnuthGlue(boxLen, 0, 0, new Position(null), true)); + } else { + returnList.add(new KnuthGlue(0, -penaltyOrGlueLen, 0, new Position(null), true)); + } } else { returnList.add(new KnuthGlue(-penaltyOrGlueLen, 0, 0, new Position(null), true)); } |