diff options
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index b5510f665714..c4e6c56224b1 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -7801,7 +7801,7 @@ void ScInterpreter::ScLeft() if (nParamCount == 2) { double nVal = ::rtl::math::approxFloor(GetDouble()); - if ( nVal < 0.0 || nVal > STRING_MAXLEN ) + if ( rtl::math::isNan(nVal) || nVal < 0.0 || nVal > STRING_MAXLEN ) { PushIllegalArgument(); return ; @@ -7909,7 +7909,7 @@ void ScInterpreter::ScRightB() if (nParamCount == 2) { double nVal = ::rtl::math::approxFloor(GetDouble()); - if ( nVal < 0.0 || nVal > STRING_MAXLEN ) + if ( rtl::math::isNan(nVal) || nVal < 0.0 || nVal > STRING_MAXLEN ) { PushIllegalArgument(); return ; |