From d14c535ad9b75370b5c2a17e2a7cb7927c427ca2 Mon Sep 17 00:00:00 2001 From: Joerg Pietschmann Date: Thu, 13 Feb 2003 21:21:12 +0000 Subject: [PATCH] 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 --- src/org/apache/fop/layout/hyphenation/HyphenationTree.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5