From 2e89f46ab3413915187fb6f533cfa4ba2a439187 Mon Sep 17 00:00:00 2001 From: Glen Stampoultzis Date: Wed, 12 Jun 2002 09:13:32 +0000 Subject: [PATCH] Applied extended text fix to 1.5 branch git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_1_5_BRANCH@352685 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/hssf/record/SSTDeserializer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/poi/hssf/record/SSTDeserializer.java b/src/java/org/apache/poi/hssf/record/SSTDeserializer.java index 2e1573e795..c4698df0fb 100644 --- a/src/java/org/apache/poi/hssf/record/SSTDeserializer.java +++ b/src/java/org/apache/poi/hssf/record/SSTDeserializer.java @@ -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) ); } } -- 2.39.5