diff options
author | Eike Rathke <erack@redhat.com> | 2015-07-07 00:29:57 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-07-07 00:41:12 +0200 |
commit | cd4bbac0a866432adf7a7104add3a55f43636576 (patch) | |
tree | c108bfdcea4ad21b066dbdce212ff018e8b0bc31 /sc/source | |
parent | 5d88cb48a77e65810ea6d0be32b5387b1767a216 (diff) |
also ifCOUNT2 return type is always number
and an on-the-fly comment translation
Change-Id: I7e2d24928c3b508db39053ea768c25048bfb5d87
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/tool/interpr6.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr6.cxx b/sc/source/core/tool/interpr6.cxx index 425af00d39be..81cf0d1924d3 100644 --- a/sc/source/core/tool/interpr6.cxx +++ b/sc/source/core/tool/interpr6.cxx @@ -819,9 +819,9 @@ double ScInterpreter::IterateParameters( ScIterFunc eFunc, bool bTextAsZero ) case ifPRODUCT: if ( !nCount ) fRes = 0.0; break; default: ; // nothing } - // Bei Summen etc. macht ein bool-Ergebnis keinen Sinn - // und Anzahl ist immer Number (#38345#) - if( nFuncFmtType == css::util::NumberFormat::LOGICAL || eFunc == ifCOUNT ) + // A boolean return type makes no sense on sums et al. + // Counts are always numbers. + if( nFuncFmtType == css::util::NumberFormat::LOGICAL || eFunc == ifCOUNT || eFunc == ifCOUNT2 ) nFuncFmtType = css::util::NumberFormat::NUMBER; return fRes; } |