diff options
author | Eike Rathke <erack@redhat.com> | 2018-12-13 16:37:08 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-12-13 19:19:21 +0100 |
commit | 6ca8d2c895d729510c8345db79db95016db5e3ba (patch) | |
tree | f0b5521fe1e731eaa00f2c77d79aaf6db7365b64 /sc/source | |
parent | 5a2fe0b2703352c682c75394b64648b61ee4fadb (diff) |
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@redhat.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/tool/subtotal.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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: |