summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-07-04 09:18:09 +0200
committerEike Rathke <erack@redhat.com>2017-07-04 09:23:58 +0200
commit29c4c8206d03494f32809e06814675d2952ae0bc (patch)
treebd654dcacee1abf33c4f7c0722b57765d246eb4f
parent151ee1eb2cd0d9f0c46975ea260c0d12f0ce8db1 (diff)
Remove artificial parameter count limit from NPV()
Change-Id: I09b1afa89d57a41a3c58cd7cc27ea62dcd508550
-rw-r--r--sc/source/core/tool/interpr2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index 53023e348ef5..e453f46a5812 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -1290,7 +1290,7 @@ void ScInterpreter::ScNPV()
{
nFuncFmtType = css::util::NumberFormat::CURRENCY;
short nParamCount = GetByte();
- if ( MustHaveParamCount( nParamCount, 2, 31 ) )
+ if ( MustHaveParamCountMin( nParamCount, 2) )
{
double nVal = 0.0;
// We turn the stack upside down!