[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 28 11:09:32 UTC 2018


 sw/source/filter/ww8/ww8par3.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit cc1276e217463da9b53d4bd3cbe3be04536568cb
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 20 16:03:24 2018 +0100
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Fri Sep 28 13:08:10 2018 +0200

    ofz#10523 guard aginst 0 pF->nLCode
    
    Change-Id: I8ef476e06f54ddd57be907488a8a65314abda3ee
    Reviewed-on: https://gerrit.libreoffice.org/60828
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>
    (cherry picked from commit c5d9823a5726d06aaa816360bc0d48e7ae882085)

diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx
index c00f7f09a916..d61e4d1ab319 100644
--- a/sw/source/filter/ww8/ww8par3.cxx
+++ b/sw/source/filter/ww8/ww8par3.cxx
@@ -88,7 +88,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);
     }
 


More information about the Libreoffice-commits mailing list