summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Hryniuk <lukasz.hryniuk@wp.pl>2015-09-22 16:44:03 +0200
committerŁukasz Hryniuk <lukasz.hryniuk@wp.pl>2015-09-24 20:11:19 +0000
commit793d1aba304217dcea6707a4b8acf5ac09f62e5a (patch)
tree1c7e2bf0edda7398a3fb9ebbad534759bbcfd914
parent837c50d3d8390da359c5f07da3fdd87fc60d9158 (diff)
Fix a bug in SUMSQ
The same one as was in SumMXMY2, with IterateResult. Change-Id: I18a5993493ca7514848baad25232f4c254c1e044 Reviewed-on: https://gerrit.libreoffice.org/18765 Reviewed-by: Łukasz Hryniuk <lukasz.hryniuk@wp.pl> Tested-by: Łukasz Hryniuk <lukasz.hryniuk@wp.pl>
-rw-r--r--sc/source/core/tool/interpr6.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr6.cxx b/sc/source/core/tool/interpr6.cxx
index 69a11a0abde9..75aacd8695ea 100644
--- a/sc/source/core/tool/interpr6.cxx
+++ b/sc/source/core/tool/interpr6.cxx
@@ -408,6 +408,7 @@ void IterateMatrix(
case ifSUMSQ:
{
ScMatrix::IterateResult aRes = pMat->SumSquare(bTextAsZero);
+ fRes = aRes.mfFirst;
fRes += aRes.mfRest;
rCount += aRes.mnCount;
}