sc/source/core/tool/interpr2.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit f613caedb14fb514c9ef26c42830f8a6c12c53ef
Author:     Eike Rathke <er...@redhat.com>
AuthorDate: Sun May 23 14:29:30 2021 +0200
Commit:     Eike Rathke <er...@redhat.com>
CommitDate: Sun May 23 16:24:30 2021 +0200

    Resolves: tdf#136794 Unlimit decimals for ROUND()
    
    Change-Id: I8a00cbea0fab3ef301def81f52febd4ad03bd3f6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116018
    Reviewed-by: Eike Rathke <er...@redhat.com>
    Tested-by: Jenkins

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 ) &&
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to