sc/source/core/tool/interpr5.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a0c7001b0e5ffb66ee1822b9fd8225977e4f0b73
Author:     dante <dante19031...@gmail.com>
AuthorDate: Fri Apr 30 21:04:51 2021 +0200
Commit:     Mike Kaganski <mike.kagan...@collabora.com>
CommitDate: Fri May 7 09:38:22 2021 +0200

    Simplify PushDouble by PushError for ScInterpreter::SumProduct
    
    Change-Id: I0e9f5ebe12710008a13961be41ba454c1cd2f978
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114946
    Tested-by: Mike Kaganski <mike.kagan...@collabora.com>
    Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com>

diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index f7dd527780ea..613c467cbdc2 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -1767,7 +1767,7 @@ void ScInterpreter::ScSumProduct()
         else if (nErr != FormulaError::ElementNaN)
         {
             // Propagate the first error encountered, ignore "this is not a 
number" elements.
-            PushDouble(fPosArray);
+            PushError(nErr);
             return;
         }
     }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to