From: Joerg Pietschmann Date: Thu, 13 Feb 2003 21:21:12 +0000 (+0000) Subject: Fixed incorrect comparision with hyphenation push character X-Git-Tag: fop-0_20_5rc2~15 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d14c535ad9b75370b5c2a17e2a7cb7927c427ca2;p=xmlgraphics-fop.git Fixed incorrect comparision with hyphenation push character 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 --- diff --git a/src/org/apache/fop/layout/hyphenation/HyphenationTree.java b/src/org/apache/fop/layout/hyphenation/HyphenationTree.java index 90842e6df..921ac5a0d 100644 --- a/src/org/apache/fop/layout/hyphenation/HyphenationTree.java +++ b/src/org/apache/fop/layout/hyphenation/HyphenationTree.java @@ -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; } }