]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed incorrect comparision with hyphenation push character
authorJoerg Pietschmann <pietsch@apache.org>
Thu, 13 Feb 2003 21:21:12 +0000 (21:21 +0000)
committerJoerg Pietschmann <pietsch@apache.org>
Thu, 13 Feb 2003 21:21:12 +0000 (21:21 +0000)
count.
Submitted by: jaccoud@petrobras.com.br

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_20_2-maintain@195945 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/layout/hyphenation/HyphenationTree.java

index 90842e6df3fd9dcfe7920d040aeafcd577dbac12..921ac5a0dd7764471b796db0f48c23fc473f27b8 100644 (file)
@@ -305,7 +305,7 @@ public class HyphenationTree extends TernaryTree implements PatternConsumer,
             // hyphenation points are located where interletter value is odd
             for (i = 0; i < len; i++) {
                 if (((il[i + 1] & 1) == 1) && i >= remainCharCount
-                        && i < (len - pushCharCount)) {
+                        && i <= (len - pushCharCount)) {
                     result[k++] = i;
                 }
             }