sw/source/filter/ww8/ww8par3.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5d80a776ca2f45534d7d786e8700bced36dec500 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Sep 20 16:03:24 2018 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Sep 20 22:07:12 2018 +0200 ofz#10523 guard aginst 0 pF->nLCode Change-Id: I8ef476e06f54ddd57be907488a8a65314abda3ee Reviewed-on: https://gerrit.libreoffice.org/60822 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index bcfdc2d95e4a..d74334b2c6c2 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -91,7 +91,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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits