summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par3.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-24 15:39:28 +0000
committerAndras Timar <andras.timar@collabora.com>2018-03-06 14:54:23 +0100
commite7ee6ec36349c51aef6e6170666e8b7005dd0035 (patch)
tree393c2a8cfdac647ca73bbe9c41a1689b794b44f9 /sw/source/filter/ww8/ww8par3.cxx
parent4a3cf47da3d501a0f0427a3cfd280a0724784020 (diff)
ofz: check nLevel against maParaSprms size
Reviewed-on: https://gerrit.libreoffice.org/48521 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org> (cherry picked from commit bc75f71139a2f711813013fe2380d9a61e383574) Change-Id: I9bcaf176e6a2f70348712ca98c4176125c2f455e
Diffstat (limited to 'sw/source/filter/ww8/ww8par3.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par3.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index 7b1c37c76bdf..5f334ad3361e 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -1449,10 +1449,10 @@ WW8ListManager::WW8ListManager(SvStream& rSt_, SwWW8ImplReader& rReader_)
if (aBits1 & 0x20)
{
aLFOLVL.bFormat = true;
- // falls bStartup true, hier den Startup-Level
- // durch den im LVL vermerkten ersetzen LVLF
- // einlesen
- bLVLOk = ReadLVL(aNumFormat, aItemSet[nLevel],
+ // if bStartup is true, replace Startup-Level
+ // with the LVLF that is saved in the LVL
+ bLVLOk = nLevel < rLFOInfo.maParaSprms.size() &&
+ ReadLVL(aNumFormat, aItemSet[nLevel],
pParentListInfo->aIdSty[nLevel],
aLFOLVL.bStartAt, aNotReallyThere, nLevel,
rLFOInfo.maParaSprms[nLevel]);