diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-24 15:39:28 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-06 21:37:57 +0100 |
commit | cd9d633151727d68629a150fbb65be0c996e23c0 (patch) | |
tree | 956739b24295eec428979e0753c16ed02456473d /sw | |
parent | cf0d21e6c6775a96b5ab67348ab63b2decae6627 (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')
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 8 |
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]); |