diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-24 15:39:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-25 09:53:24 +0100 |
commit | 6a042742d34ce6503cbebae0268845d7f71a95d6 (patch) | |
tree | c7e6529057419e615d85b67cfe84519b73143cb7 /sw | |
parent | 97b7ada0388d0b0da4303cf95443339ab0f3523b (diff) |
ofz#5661 check nLevel against maParaSprms size
Change-Id: I9bcaf176e6a2f70348712ca98c4176125c2f455e
Reviewed-on: https://gerrit.libreoffice.org/48519
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/ww8par3.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index e209103d892d..6b54244c0529 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -1415,7 +1415,8 @@ WW8ListManager::WW8ListManager(SvStream& rSt_, SwWW8ImplReader& rReader_) aLFOLVL.bFormat = true; // if bStartup is true, replace Startup-Level // with the LVLF that is saved in the LVL - bLVLOk = ReadLVL(aNumFormat, aItemSet[nLevel], + bLVLOk = nLevel < rLFOInfo.maParaSprms.size() && + ReadLVL(aNumFormat, aItemSet[nLevel], pParentListInfo->aIdSty[nLevel], aLFOLVL.bStartAt, aNotReallyThere, nLevel, rLFOInfo.maParaSprms[nLevel]); |