diff options
author | Łukasz Hryniuk <lukasz.hryniuk@wp.pl> | 2015-09-22 16:44:03 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-10-02 14:58:32 +0200 |
commit | 30398e41f9455b3ebd8581d01568c6e0eb44bddd (patch) | |
tree | 633b487ac4c02a7bd715c3a76cdc5e185ae1c20b /sc/source/core/tool | |
parent | 16a1ab35ae9b87161e955031fb9a227934f2c0ce (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/source/core/tool')
-rw-r--r-- | sc/source/core/tool/interpr6.cxx | 1 |
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; } |