summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/interpr2.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index dc30df4be07e..632b04643a28 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -966,9 +966,7 @@ void ScInterpreter::RoundNumber( rtl_math_RoundingMode eMode )
{
sal_Int16 nDec = GetInt16();
double fX = GetDouble();
- if ( nGlobalError != FormulaError::NONE || nDec < -20 || nDec > 20 )
- PushIllegalArgument();
- else
+ if (nGlobalError == FormulaError::NONE)
{
if ( ( eMode == rtl_math_RoundingMode_Down ||
eMode == rtl_math_RoundingMode_Up ) &&