pietsch 2003/02/13 13:26:43
Modified: src/org/apache/fop/layout/hyphenation HyphenationTree.java
Log:
Fixed comparision with push character count.
Submitted by: [EMAIL PROTECTED]
Revision Changes Path
1.7 +2 -2
xml-fop/src/org/apache/fop/layout/hyphenation/HyphenationTree.java
Index: HyphenationTree.java
===================================================================
RCS file:
/home/cvs/xml-fop/src/org/apache/fop/layout/hyphenation/HyphenationTree.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- HyphenationTree.java 9 Nov 2001 11:32:41 -0000 1.6
+++ HyphenationTree.java 13 Feb 2003 21:26:43 -0000 1.7
@@ -305,7 +305,7 @@
// 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;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]