diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-20 16:03:24 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-09-21 00:46:44 -0700 |
commit | 108eca19c9043895f26c889c90b3f4081113a3fb (patch) | |
tree | 46567dcc0b5b42d33438cfd1c2cf0f77e5cbf52b /sw/source/filter/ww8 | |
parent | adc040bbff6a4bac6b96f857c9a24b1a1beba1b2 (diff) |
ofz#10523 guard aginst 0 pF->nLCode
Change-Id: I8ef476e06f54ddd57be907488a8a65314abda3ee
Diffstat (limited to 'sw/source/filter/ww8')
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 5f334ad3361e..e1031167416a 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -102,7 +102,7 @@ eF_ResT SwWW8ImplReader::Read_F_FormTextBox( WW8FieldDesc* pF, OUString& rStr ) { WW8FormulaEditBox aFormula(*this); - if (rStr[pF->nLCode-1]==0x01) { + if (pF->nLCode && rStr[pF->nLCode-1]==0x01) { ImportFormulaControl(aFormula,pF->nSCode+pF->nLCode-1, WW8_CT_EDIT); } |