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 10:53:22 +0200 |
commit | 40d91027e70518dff8404aaf10fd9830995d9409 (patch) | |
tree | 252e2735fd1146d254cc32f899f49e2827315906 | |
parent | 62b7f51e3bf0418dccc05cca64c385554eb7b396 (diff) |
ofz#10523 guard aginst 0 pF->nLCode
Change-Id: I8ef476e06f54ddd57be907488a8a65314abda3ee
(cherry picked from commit 108eca19c9043895f26c889c90b3f4081113a3fb)
-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); } |