sc/source/filter/xml/xmlcelli.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
New commits: commit 71f2aea3151b82ba4793eb21a2251d587e425511 Author: Arnaud VERSINI <arnaud.vers...@libreoffice.org> AuthorDate: Mon Apr 17 20:47:31 2023 +0200 Commit: Arnaud Versini <arnaud.vers...@libreoffice.org> CommitDate: Mon Jul 17 20:30:14 2023 +0200 sc : small simplification in ScXMLTableRowCellContext::IsPossibleErrorString Change-Id: I3c5bd6b53528b1cc1d695fb48f89b6f19f5c0f6b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150532 Tested-by: Jenkins Reviewed-by: Arnaud Versini <arnaud.vers...@libreoffice.org> diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx index c041251c0119..3e94b576c679 100644 --- a/sc/source/filter/xml/xmlcelli.cxx +++ b/sc/source/filter/xml/xmlcelli.cxx @@ -1489,10 +1489,9 @@ void ScXMLTableRowCellContext::HasSpecialCaseFormulaText() bool ScXMLTableRowCellContext::IsPossibleErrorString() const { - if(mbNewValueType && !mbErrorValue) - return false; - else if(mbNewValueType && mbErrorValue) - return true; + if(mbNewValueType) + return mbErrorValue; + return mbPossibleErrorCell || (mbCheckWithCompilerForError && maStringValue && GetScImport().GetFormulaErrorConstant(*maStringValue) != FormulaError::NONE); }