diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-04-17 09:17:43 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-04-26 13:19:51 +0200 |
commit | 65572a7ae58b5eafba835b4c0cb16e3cb9188f05 (patch) | |
tree | 0e4a6f4fe55eaad525e6741190779f0f5fdc8316 | |
parent | tdf#155005 fail gracefully on encountering a negative compression value (diff) | |
download | core-65572a7ae58b5eafba835b4c0cb16e3cb9188f05.tar.gz core-65572a7ae58b5eafba835b4c0cb16e3cb9188f05.zip |
tdf#151560 don't crash on loading dubious fods
Change-Id: Ib41b3a95dd3829e8d3eca61621257fdd416bd8dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150498
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
(cherry picked from commit 4ad3605166c91193b3dbf41ed33515e267133f90)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150554
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r-- | sc/source/filter/xml/xmlcelli.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index 7ae3aaaa6e35..7288c631f68c 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -1483,7 +1483,7 @@ bool ScXMLTableRowCellContext::IsPossibleErrorString() const return false; else if(mbNewValueType && mbErrorValue) return true; - return mbPossibleErrorCell || (mbCheckWithCompilerForError && + return mbPossibleErrorCell || (mbCheckWithCompilerForError && maStringValue && GetScImport().GetFormulaErrorConstant(*maStringValue) != FormulaError::NONE); } |