aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-12-08 08:51:14 +0000
committerJeremias Maerki <jeremias@apache.org>2005-12-08 08:51:14 +0000
commitc333acfb9bc42ee91f7b7cd11ff88fa7dca64272 (patch)
tree8c73192419104cc5f0893556996b52f21d09fb71 /src/java/org/apache/fop
parent973d676bae6d1253f8675b216704752f5897e2fa (diff)
downloadxmlgraphics-fop-c333acfb9bc42ee91f7b7cd11ff88fa7dca64272.tar.gz
xmlgraphics-fop-c333acfb9bc42ee91f7b7cd11ff88fa7dca64272.zip
Bugzilla #37828:
Bugfix for column balancing with large amounts of text. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@355042 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r--src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
index 9bc09c2f5..59d331028 100644
--- a/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/PageSequenceLayoutManager.java
@@ -349,6 +349,8 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
AbstractBreaker.log.debug("restart: iOptPageCount= " + iOptPageCount
+ " pageBreaks.size()= " + algRestart.getPageBreaks().size());
if (iOptPageCount > getCurrentPV().getBodyRegion().getColumnCount()) {
+ AbstractBreaker.log.warn(
+ "Breaking algorithm produced more columns than are available.");
/* reenable when everything works
throw new IllegalStateException(
"Breaking algorithm must not produce more columns than available.");
@@ -787,7 +789,7 @@ public class PageSequenceLayoutManager extends AbstractLayoutManager {
PageViewport pv = getPageViewport(
false, pageIndex, RELTO_CURRENT_ELEMENT_LIST);
while (idx < partCount) {
- if ((idx < partCount - 1) && (colIndex >= pv.getCurrentSpan().getColumnCount())) {
+ if ((colIndex >= pv.getCurrentSpan().getColumnCount())) {
colIndex = 0;
pageIndex++;
pv = getPageViewport(