Kaydet (Commit) 6ca8d2c8 authored tarafından Eike Rathke's avatar Eike Rathke

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: 's avatarEike Rathke <erack@redhat.com>
üst 5a2fe0b2
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment