glens 2002/06/12 02:10:04 Modified: src/java/org/apache/poi/hssf/record SSTDeserializer.java Log: A fix for the bug that remained uncaught because I didn't write a testcase that I should have - once again proving to myself that test cases are wonderful things and that I skimp on doing them way too often. Revision Changes Path 1.4 +2 -1 jakarta-poi/src/java/org/apache/poi/hssf/record/SSTDeserializer.java Index: SSTDeserializer.java =================================================================== RCS file: /home/cvs/jakarta-poi/src/java/org/apache/poi/hssf/record/SSTDeserializer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SSTDeserializer.java 9 Jun 2002 12:48:34 -0000 1.3 +++ SSTDeserializer.java 12 Jun 2002 09:10:04 -0000 1.4 @@ -187,7 +187,8 @@ extensionLength = 0; if ( extendedText ) { - extensionLength = LittleEndian.getInt( data, index + SSTRecord.STRING_MINIMAL_OVERHEAD ); + extensionLength = LittleEndian.getInt( data, index + SSTRecord.STRING_MINIMAL_OVERHEAD + + (richText ? LittleEndianConsts.SHORT_SIZE : 0) ); } }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>