aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
index 6dbc997b3..fce0b4479 100644
--- a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
@@ -191,7 +191,8 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
needColumnBalancing = (childLC.getNextSpan() == Constants.EN_ALL);
}
if (needColumnBalancing) {
- AbstractBreaker.log.debug("Column balancing necessary for the next element list!!!");
+ AbstractBreaker.log.debug(
+ "Column balancing necessary for the next element list!!!");
}
return nextSequenceStartsOn;
}
@@ -321,7 +322,8 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
} else {
newStartPos = 0;
}
- AbstractBreaker.log.debug("Restarting at " + restartPoint + ", new start position: " + newStartPos);
+ AbstractBreaker.log.debug("Restarting at " + restartPoint
+ + ", new start position: " + newStartPos);
//Handle page break right here to avoid any side-effects
handleBreakTrait(EN_PAGE);
@@ -623,7 +625,7 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
} else if (breakVal == Constants.EN_NONE) {
curPV.createSpan(false);
return;
- } else if (breakVal == Constants.EN_COLUMN || breakVal == -1) {
+ } else if (breakVal == Constants.EN_COLUMN || breakVal <= 0) {
if (curPV.getCurrentSpan().hasMoreFlows()) {
curPV.getCurrentSpan().moveToNextFlow();
} else {