aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis Bernardo <lbernardo@apache.org>2012-12-12 23:34:28 +0000
committerLuis Bernardo <lbernardo@apache.org>2012-12-12 23:34:28 +0000
commitf42c3b149b8a23de41e004285d421ddeee39e1bb (patch)
tree6446634b2874fd8e7589ed296da20c4588f35bdb
parent0d4b815b26a14f6dda80d7986649232534a36fe6 (diff)
downloadxmlgraphics-fop-f42c3b149b8a23de41e004285d421ddeee39e1bb.tar.gz
xmlgraphics-fop-f42c3b149b8a23de41e004285d421ddeee39e1bb.zip
jira fop-1840: column balancing algorithm; applied patch 12550540 submitted by Robert Meyer.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1421038 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/layoutmgr/BalancingColumnBreakingAlgorithm.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BalancingColumnBreakingAlgorithm.java b/src/java/org/apache/fop/layoutmgr/BalancingColumnBreakingAlgorithm.java
index 47a2e38fb..f40a44d0e 100644
--- a/src/java/org/apache/fop/layoutmgr/BalancingColumnBreakingAlgorithm.java
+++ b/src/java/org/apache/fop/layoutmgr/BalancingColumnBreakingAlgorithm.java
@@ -63,8 +63,8 @@ public class BalancingColumnBreakingAlgorithm extends PageBreakingAlgorithm {
return demerits;
}
for (int breakPos = 0; breakPos < curPossibility.size(); breakPos++) {
- if (curPossibility.get(breakPos) != 0 && curPossibility.get(breakPos)
- != idealBreaks.get(breakPos)) {
+ if (curPossibility.get(breakPos) != 0 &&
+ !curPossibility.get(breakPos).equals(idealBreaks.get(breakPos))) {
notIdeal = true;
break;
}