summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/ucalc.cxx2
-rw-r--r--sc/source/core/tool/interpr1.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 09ada380d786..f29bac11f696 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -779,7 +779,7 @@ void testFuncNUMBERVALUE( ScDocument* pDoc )
} aChecks[] = {
{ "=NUMBERVALUE(A1;\"b\";\"ag\")", "199.9" },
{ "=NUMBERVALUE(A2;\"b\";\"ag\")", "134.56789" },
- { "=NUMBERVALUE(A2;\"b\";\"g\")", "Err:502" },
+ { "=NUMBERVALUE(A2;\"b\";\"g\")", "#VALUE!" },
{ "=NUMBERVALUE(A3;\"d\")", "12.3456" },
{ "=NUMBERVALUE(A4;\"d\";\"foo\")", "0.4" },
{ "=NUMBERVALUE(A4;)", "Err:502" },
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 53cb552ce2d8..2ab779afb1fa 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -3472,7 +3472,7 @@ void ScInterpreter::ScNumberValue()
PushDouble(fVal);
return;
}
- PushIllegalArgument();
+ PushNoValue();
}