]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
jira fop-1840: column balancing algorithm; applied patch 12550540 submitted by Robert...
authorLuis Bernardo <lbernardo@apache.org>
Wed, 12 Dec 2012 23:34:28 +0000 (23:34 +0000)
committerLuis Bernardo <lbernardo@apache.org>
Wed, 12 Dec 2012 23:34:28 +0000 (23:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1421038 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/BalancingColumnBreakingAlgorithm.java

index 47a2e38fb9a6ad85f9fbac92c8d0c15edb17865e..f40a44d0e0235b758a9cb724b8fcebaf7c4d6a21 100644 (file)
@@ -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;
             }