sc/source/core/tool/interpr6.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 793d1aba304217dcea6707a4b8acf5ac09f62e5a
Author: Łukasz Hryniuk <lukasz.hryn...@wp.pl>
Date:   Tue Sep 22 16:44:03 2015 +0200

    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.hryn...@wp.pl>
    Tested-by: Łukasz Hryniuk <lukasz.hryn...@wp.pl>

diff --git a/sc/source/core/tool/interpr6.cxx b/sc/source/core/tool/interpr6.cxx
index 69a11a0..75aacd86 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;
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to