summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorŁukasz Hryniuk <lukasz.hryniuk@wp.pl>2015-09-22 16:44:03 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-09-25 09:48:53 +0000
commit31bf7e6aeb0f8c51e74fb181b547a9b8e7f7e5d1 (patch)
tree9bb27db3b592fd9afdde9d2ba5c553f40b504ee8 /sc
parentb477a8d5df518cd8c30a1a21e3ffccc8bac88084 (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> (cherry picked from commit 793d1aba304217dcea6707a4b8acf5ac09f62e5a) Reviewed-on: https://gerrit.libreoffice.org/18842 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-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 7eac4eb90f73..3872cfc25226 100644
--- a/sc/source/core/tool/interpr6.cxx
+++ b/sc/source/core/tool/interpr6.cxx
@@ -395,6 +395,7 @@ void IterateMatrix(
case ifSUMSQ:
{
ScMatrix::IterateResult aRes = pMat->SumSquare(bTextAsZero);
+ fRes = aRes.mfFirst;
fRes += aRes.mfRest;
rCount += aRes.mnCount;
}