summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/interpr1.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 3123ba8fd54f..21fecb197b1e 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -130,8 +130,10 @@ void ScInterpreter::ScIfJump()
else
{
// Treat empty and empty path as 0, but string
- // as error.
- bIsValue = (!pMat->IsString(nC, nR) || pMat->IsEmpty(nC, nR));
+ // as error. ScMatrix::IsValueOrEmpty() returns
+ // true for any empty, empty path, empty cell,
+ // empty result.
+ bIsValue = pMat->IsValueOrEmpty(nC, nR);
bTrue = false;
fVal = (bIsValue ? 0.0 : CreateDoubleError( FormulaError::NoValue));
}