summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-28 10:17:56 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-09-26 21:24:27 +0200
commit04f269f4e9fa38c52a85406e6bf6deadce3ffbfa (patch)
tree2ffdab5e7c174fc570a7c5fbaf36663725fe3540 /sw
parent2e36b1e03bee33ceded5e80d045efba5cd1c5063 (diff)
ofz#3110 GeneratePLCF only generated word6 sized missing entries
BTE was 2 bytes in word 7- but 4 bytes in word 8+ Change-Id: I24007d26fccc5edc104320bd2eb8f9c62399c988 Reviewed-on: https://gerrit.libreoffice.org/41623 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/ww8scan.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index e45e1bdffa6a..a9ee1a5a17e1 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -2158,7 +2158,7 @@ void WW8PLCF::GeneratePLCF(SvStream& rSt, sal_Int32 nPN, sal_Int32 ncpN)
if (!failure)
{
- size_t nSiz = 6 * nIMax + 4;
+ size_t nSiz = (4 + nStru) * nIMax + 4;
size_t nElems = ( nSiz + 3 ) / 4;
pPLCF_PosArray.reset( new sal_Int32[ nElems ] ); // Pointer to Pos-array
@@ -2213,7 +2213,7 @@ void WW8PLCF::GeneratePLCF(SvStream& rSt, sal_Int32 nPN, sal_Int32 ncpN)
for (sal_Int32 i = 0; i < ncpN; ++i) // construct PNs
{
ShortToSVBT16(static_cast<sal_uInt16>(nPN + i), p);
- p+=2;
+ p += nStru;
}
}