diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-11-11 16:39:21 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-11-11 16:39:21 +0000 |
commit | 6f2c345eb1501735aff9bd787841ebce46ee0cb8 (patch) | |
tree | fe1deb237a8becbe645627bf751281c022a923ca /src/java/org/apache/fop | |
parent | 7af60c6d3de5fa2a3b200e6a46f756f3cfd961a2 (diff) | |
download | xmlgraphics-fop-6f2c345eb1501735aff9bd787841ebce46ee0cb8.tar.gz xmlgraphics-fop-6f2c345eb1501735aff9bd787841ebce46ee0cb8.zip |
Bugzilla #37468:
Bugfix: A normal break inside a table resulted in the next part to be sent to the next page instead of the next flow. TableContentLayoutManager produces KnuthPenalties with breakClass=0.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332594 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java | 8 |
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 { |