update dev300-m57
[ooovba.git] / applied_patches / 0125-sc-string-arg-counta-fix.diff
blobb2d708f5e29edf1b7bd21f566b60c2f8803b1b80
1 diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
2 index 4f1976a..a2adbe9 100644
3 --- sc/source/core/tool/interpr1.cxx
4 +++ sc/source/core/tool/interpr1.cxx
5 @@ -3078,6 +3078,9 @@ double ScInterpreter::IterateParameters( ScIterFunc eFunc, BOOL bTextAsZero )
6 if ( bTextAsZero || pFormatter->IsNumberFormat(aStr, nFIndex, fVal))
7 nCount++;
9 + else if (eFunc == ifCOUNT2)
10 + // COUNTA - we should count both number and string.
11 + ++nCount;
12 else
14 if ( bTextAsZero && eStackType == svString )