diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-10 09:58:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-10 16:40:41 +0100 |
commit | d64f6caf22715fb421f4b89820c0842b7cae6905 (patch) | |
tree | 453ae0e13053cbef50f8d92c928f85ca5d5e8a5e /sc | |
parent | 4dba9820cf44718121a38b3f89eb8caa244d7321 (diff) |
ofz#4163 Null-dereference READ
Change-Id: I3d1ae5f55343b1b8ec3b0d79a56c9368385a0af8
Reviewed-on: https://gerrit.libreoffice.org/44581
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/rtf/eeimpars.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/rtf/eeimpars.cxx b/sc/source/filter/rtf/eeimpars.cxx index f84cc987ef8d..cac30a4db058 100644 --- a/sc/source/filter/rtf/eeimpars.cxx +++ b/sc/source/filter/rtf/eeimpars.cxx @@ -400,10 +400,10 @@ void ScEEImport::WriteToDocument( bool bSizeColsRows, double nOutputFactor, SvNu mpDoc->SetString(nCol, nRow, nTab, aStr, &aParam); } } - else + else if (EditTextObject* pTextObject = mpEngine->CreateTextObject(pE->aSel)) { // The cell will own the text object instance. - mpDoc->SetEditText(ScAddress(nCol,nRow,nTab), mpEngine->CreateTextObject(pE->aSel)); + mpDoc->SetEditText(ScAddress(nCol,nRow,nTab), pTextObject); } if ( !pE->maImageList.empty() ) bHasGraphics |= GraphicSize( nCol, nRow, pE ); |