]> source.dussan.org Git - poi.git/commitdiff
A fix for the bug that remained uncaught because I didn't write a testcase that I...
authorGlen Stampoultzis <glens@apache.org>
Wed, 12 Jun 2002 09:10:04 +0000 (09:10 +0000)
committerGlen Stampoultzis <glens@apache.org>
Wed, 12 Jun 2002 09:10:04 +0000 (09:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352684 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hssf/record/SSTDeserializer.java

index 2e1573e795f830fcd277fbafcf0f8e79229afcc4..c4698df0fb73a13ae87cd75e69e2e988eaf29ee3 100644 (file)
@@ -187,7 +187,8 @@ class SSTDeserializer
         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) );
         }
 
     }