sc/source/core/tool/subtotal.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 6ca8d2c895d729510c8345db79db95016db5e3ba Author: Eike Rathke <er...@redhat.com> AuthorDate: Thu Dec 13 16:37:08 2018 +0100 Commit: Eike Rathke <er...@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 <er...@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: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits