Kaydet (Commit) 44b56bab authored tarafından Eike Rathke's avatar Eike Rathke

Get vector count right, tdf#58874

Change-Id: I1d4224c6a87af4ed9f879e144958f95418fabbf7
üst cd71e5b9
......@@ -997,14 +997,13 @@ void ScInterpreter::IterateParameters( ScIterFunc eFunc, bool bTextAsZero )
// Include value of last non-references-array type and calculate final result.
for (SCSIZE i=0; i < nMatRows; ++i)
{
if (xResCount)
nCount += xResCount->GetDouble(0,i);
sal_uLong nVecCount = (xResCount ? nCount + xResCount->GetDouble(0,i) : nCount);
double fVecRes = xResMat->GetDouble(0,i);
if (eFunc == ifPRODUCT)
fVecRes *= fRes;
else
fVecRes += fRes;
fVecRes = lcl_IterResult( eFunc, fVecRes, fMem, nCount);
fVecRes = lcl_IterResult( eFunc, fVecRes, fMem, nVecCount);
xResMat->PutDouble( fVecRes, 0,i);
}
PushMatrix( xResMat);
......
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