diff options
author | Nick Burch <nick@apache.org> | 2011-05-06 01:28:28 +0000 |
---|---|---|
committer | Nick Burch <nick@apache.org> | 2011-05-06 01:28:28 +0000 |
commit | 27732b7287ebfd0bf72a86b9ff8f310884e07aad (patch) | |
tree | 8b4e9fe903908b4bd510312c65ca5446e7c501de /src/java | |
parent | a00691b86ae481bbeb6052bac12d4510b25b8d3d (diff) | |
download | poi-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.java | 2 |
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;
}
|