summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-07-07 00:29:57 +0200
committerEike Rathke <erack@redhat.com>2015-07-07 00:41:12 +0200
commitcd4bbac0a866432adf7a7104add3a55f43636576 (patch)
treec108bfdcea4ad21b066dbdce212ff018e8b0bc31 /sc
parent5d88cb48a77e65810ea6d0be32b5387b1767a216 (diff)
also ifCOUNT2 return type is always number
and an on-the-fly comment translation Change-Id: I7e2d24928c3b508db39053ea768c25048bfb5d87
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr6.cxx6
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;
}