View | Details | Raw Unified | Return to bug 48745
Collapse All | Expand All

(-)src/java/org/apache/fop/hyphenation/HyphenationTree.java (-4 / +4 lines)
Lines 104-116 Link Here
104
        StringBuffer buf = new StringBuffer();
104
        StringBuffer buf = new StringBuffer();
105
        byte v = vspace.get(k++);
105
        byte v = vspace.get(k++);
106
        while (v != 0) {
106
        while (v != 0) {
107
            char c = (char)((v >>> 4) - 1 + '0');
107
           char c = (char)(((v >>> 4) & 0x0f) - 1 + '0');
108
            buf.append(c);
108
            buf.append(c);
109
            c = (char)(v & 0x0f);
109
            c = (char)(v & 0x0f);
110
            if (c == 0) {
110
            if (c == 0) {
111
                break;
111
                break;
112
            }
112
            }
113
            c = (char)(c - 1 + '0');
113
            c = (char)((c & 0x0f) - 1 + '0');
114
            buf.append(c);
114
            buf.append(c);
115
            v = vspace.get(k++);
115
            v = vspace.get(k++);
116
        }
116
        }
Lines 182-194 Link Here
182
        StringBuffer buf = new StringBuffer();
182
        StringBuffer buf = new StringBuffer();
183
        byte v = vspace.get(k++);
183
        byte v = vspace.get(k++);
184
        while (v != 0) {
184
        while (v != 0) {
185
            char c = (char)((v >>> 4) - 1);
185
           char c = (char)(((v >>> 4) & 0x0f) - 1);
186
            buf.append(c);
186
            buf.append(c);
187
            c = (char)(v & 0x0f);
187
            c = (char)(v & 0x0f);
188
            if (c == 0) {
188
            if (c == 0) {
189
                break;
189
                break;
190
            }
190
            }
191
            c = (char)(c - 1);
191
            c = (char)((c & 0x0f) - 1);
192
            buf.append(c);
192
            buf.append(c);
193
            v = vspace.get(k++);
193
            v = vspace.get(k++);
194
        }
194
        }

Return to bug 48745