aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2011-05-06 01:28:28 +0000
committerNick Burch <nick@apache.org>2011-05-06 01:28:28 +0000
commit27732b7287ebfd0bf72a86b9ff8f310884e07aad (patch)
tree8b4e9fe903908b4bd510312c65ca5446e7c501de /src/java
parenta00691b86ae481bbeb6052bac12d4510b25b8d3d (diff)
downloadpoi-27732b7287ebfd0bf72a86b9ff8f310884e07aad.tar.gz
poi-27732b7287ebfd0bf72a86b9ff8f310884e07aad.zip
Fix bug #51153 - Correct sizing of LbsDataSubRecord with unused padding fields
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1100017 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java b/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
index 62f1198869..c6255e7d3f 100644
--- a/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
+++ b/src/java/org/apache/poi/hssf/record/LbsDataSubRecord.java
@@ -381,7 +381,7 @@ public class LbsDataSubRecord extends SubRecord {
public int getDataSize() {
int size = 6;
size += StringUtil.getEncodedSize(_str);
- size += _unused;
+ if(_unused != null) size++;
return size;
}