summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authordante <dante19031999@gmail.com>2021-04-30 21:04:51 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-05-07 09:38:22 +0200
commita0c7001b0e5ffb66ee1822b9fd8225977e4f0b73 (patch)
tree405aca6e38b9458953302f496464a9a53cfb6d51 /sc/source/core
parente23200dcb47ee64589e464b1c03a6f2ddc2d5ee5 (diff)
Simplify PushDouble by PushError for ScInterpreter::SumProduct
Change-Id: I0e9f5ebe12710008a13961be41ba454c1cd2f978 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114946 Tested-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/tool/interpr5.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}
}