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

(-)/c/storage/poi-src-3.0-alpha3-20061212/src/java/org/apache/poi/hssf/record/RecordFactory.java (-3 / +4 lines)
Lines 134-135 Link Here
134
                            }
134
                        } else if (record.getSid() == ContinueRecord.sid &&
135
                        else if (record.getSid() == ContinueRecord.sid &&
135
                                   (lastRecord instanceof StringRecord)) {
136
--
136
                            ((StringRecord)lastRecord).processContinueRecord(((ContinueRecord)record).getData());
137
                        } else if (record.getSid() == ContinueRecord.sid &&
(-)/c/storage/poi-src-3.0-alpha3-20061212/src/java/org/apache/poi/hssf/record/StringRecord.java (-2 / +10 lines)
Line 181 Link Here
181
181
    public void processContinueRecord(byte[] data) {
182
--
182
        if (isUnCompressedUnicode())
183
        {
184
            field_3_string += StringUtil.getFromUnicodeLE(data, 0, field_1_string_length - field_3_string.length() );
185
        }
186
        else
187
        {
188
            field_3_string += StringUtil.getFromCompressedUnicode(data, 0, field_1_string_length - field_3_string.length());
189
        }
190
    }
(-)/c/storage/poi-src-3.0-alpha3-20061212/src/java/org/apache/poi/util/StringUtil.java (-2 / +1 lines)
Line 163 Link Here
163
			return new String(string, offset, len, "ISO-8859-1");
163
			return new String(string, offset, Math.min(len, string.length - offset), "ISO-8859-1");
164
--

Return to bug 41064