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

also ifCOUNT2 return type is always number

and an on-the-fly comment translation

Change-Id: I7e2d24928c3b508db39053ea768c25048bfb5d87
üst 5d88cb48
...@@ -819,9 +819,9 @@ double ScInterpreter::IterateParameters( ScIterFunc eFunc, bool bTextAsZero ) ...@@ -819,9 +819,9 @@ double ScInterpreter::IterateParameters( ScIterFunc eFunc, bool bTextAsZero )
case ifPRODUCT: if ( !nCount ) fRes = 0.0; break; case ifPRODUCT: if ( !nCount ) fRes = 0.0; break;
default: ; // nothing default: ; // nothing
} }
// Bei Summen etc. macht ein bool-Ergebnis keinen Sinn // A boolean return type makes no sense on sums et al.
// und Anzahl ist immer Number (#38345#) // Counts are always numbers.
if( nFuncFmtType == css::util::NumberFormat::LOGICAL || eFunc == ifCOUNT ) if( nFuncFmtType == css::util::NumberFormat::LOGICAL || eFunc == ifCOUNT || eFunc == ifCOUNT2 )
nFuncFmtType = css::util::NumberFormat::NUMBER; nFuncFmtType = css::util::NumberFormat::NUMBER;
return fRes; return fRes;
} }
......
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