diff options
-rw-r--r-- | sc/source/core/tool/interpr1.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index fa9d70aeb762..143aec6f5e0e 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -3613,6 +3613,8 @@ void ScInterpreter::GetStVarParams( double& rVal, double& rValCount, case svDouble : { fVal = GetDouble(); + if ( nGlobalError ) + return; values.push_back(fVal); fSum += fVal; rValCount++; @@ -3625,6 +3627,8 @@ void ScInterpreter::GetStVarParams( double& rVal, double& rValCount, if (aCell.hasNumeric()) { fVal = GetCellValue(aAdr, aCell); + if ( nGlobalError ) + return; values.push_back(fVal); fSum += fVal; rValCount++; @@ -3652,6 +3656,11 @@ void ScInterpreter::GetStVarParams( double& rVal, double& rValCount, } while ((nErr == 0) && aValIter.GetNext(fVal, nErr)); } + if ( nErr ) + { + SetError(nErr); + return; + } } break; case svMatrix : |