aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
authorSimon Steiner <ssteiner@apache.org>2018-01-09 14:16:04 +0000
committerSimon Steiner <ssteiner@apache.org>2018-01-09 14:16:04 +0000
commit506d11aa8563bdae65574a9b73c9b8f00cfcc153 (patch)
tree05ff3b8588bc6390c5aa83bff89ed009f00831e3 /fop-core
parenta6cb59fb424d2ce7da4aa4f6d855d36f28893b44 (diff)
downloadxmlgraphics-fop-506d11aa8563bdae65574a9b73c9b8f00cfcc153.tar.gz
xmlgraphics-fop-506d11aa8563bdae65574a9b73c9b8f00cfcc153.zip
FOP-2768: Reduced space for content after table
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1820665 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/layoutmgr/table/TableStepper.java11
1 files changed, 8 insertions, 3 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 a6344f4b7..1d41d6cf1 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
@@ -270,12 +270,17 @@ public class TableStepper {
breakClass = nextBreakClass;
}
returnList.add(new BreakElement(penaltyPos, effPenaltyLen, p, breakClass, context));
- if (penaltyOrGlueLen < 0) {
- returnList.add(new KnuthGlue(-penaltyOrGlueLen, 0, 0, new Position(null), true));
- }
laststep = step;
step = getNextStep();
+
+ if (penaltyOrGlueLen < 0) {
+ if (step < 0) {
+ returnList.add(new KnuthGlue(0, -penaltyOrGlueLen, 0, new Position(null), true));
+ } else {
+ returnList.add(new KnuthGlue(-penaltyOrGlueLen, 0, 0, new Position(null), true));
+ }
+ }
} while (step >= 0);
assert !returnList.isEmpty();
lastTCPos.setFlag(TableContentPosition.LAST_IN_ROWGROUP, true);