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
This commit is contained in:
Nick Burch 2011-05-06 01:28:28 +00:00
parent 268404a200
commit 629b80044f
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@
<changes>
<release version="3.8-beta3" date="2011-??-??">
<action dev="poi-developers" type="fix">51153 - Correct sizing of LbsDataSubRecord with unused padding fields</action>
<action dev="poi-developers" type="fix">51143 - NameCommentRecord correction for writing non ASCII strings</action>
<action dev="poi-developers" type="fix">51112 - Correct XWPFTable tracking of new rows</action>
<action dev="poi-developers" type="fix">51113 - Correct XWPFParagraph tracking of inserted runs</action>

View File

@ -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;
}