[Libreoffice-commits] core.git: Branch 'libreoffice-5-4' - sw/source
Caolán McNamara
caolanm at redhat.com
Mon Aug 28 11:55:59 UTC 2017
sw/source/filter/ww8/ww8scan.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 4f0c2ca843bd63160ad958d6af135ca875ff2988
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Aug 28 10:17:56 2017 +0100
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/41624
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Michael Stahl <mstahl at redhat.com>
diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx
index 897fccb5ea90..e80ed34d4d13 100644
--- a/sw/source/filter/ww8/ww8scan.cxx
+++ b/sw/source/filter/ww8/ww8scan.cxx
@@ -2149,7 +2149,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
@@ -2204,7 +2204,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;
}
}
More information about the Libreoffice-commits
mailing list