[Libreoffice-commits] core.git: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 13 18:19:47 UTC 2018
sc/source/core/tool/subtotal.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 6ca8d2c895d729510c8345db79db95016db5e3ba
Author: Eike Rathke <erack at redhat.com>
AuthorDate: Thu Dec 13 16:37:08 2018 +0100
Commit: Eike Rathke <erack at redhat.com>
CommitDate: Thu Dec 13 19:19:21 2018 +0100
Add SUBTOTAL_FUNC_SELECTION_COUNT to ScFunctionData::update() and getResult()
Change-Id: Ie72854a812c9ea73ded6a3e8ed8992dcc73f40ad
Reviewed-on: https://gerrit.libreoffice.org/65112
Tested-by: Jenkins
Reviewed-by: Eike Rathke <erack at redhat.com>
diff --git a/sc/source/core/tool/subtotal.cxx b/sc/source/core/tool/subtotal.cxx
index ad657815b06c..44bec5477756 100644
--- a/sc/source/core/tool/subtotal.cxx
+++ b/sc/source/core/tool/subtotal.cxx
@@ -86,6 +86,9 @@ void ScFunctionData::update( double fNewVal )
case SUBTOTAL_FUNC_CNT2:
++nCount;
break;
+ case SUBTOTAL_FUNC_SELECTION_COUNT:
+ nCount += fNewVal;
+ break;
case SUBTOTAL_FUNC_AVE:
if (!SubTotal::SafePlus(nVal, fNewVal))
bError = true;
@@ -132,6 +135,7 @@ double ScFunctionData::getResult()
{
case SUBTOTAL_FUNC_CNT:
case SUBTOTAL_FUNC_CNT2:
+ case SUBTOTAL_FUNC_SELECTION_COUNT:
fRet = nCount;
break;
case SUBTOTAL_FUNC_SUM:
More information about the Libreoffice-commits
mailing list