diff options
Diffstat (limited to 'sc/source/core/tool/interpr1.cxx')
-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 bb1ad0e7a87a..f540da98e883 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -3629,6 +3629,8 @@ void ScInterpreter::GetStVarParams( double& rVal, double& rValCount, case svDouble : { fVal = GetDouble(); + if ( nGlobalError ) + return; values.push_back(fVal); fSum += fVal; rValCount++; @@ -3641,6 +3643,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++; @@ -3668,6 +3672,11 @@ void ScInterpreter::GetStVarParams( double& rVal, double& rValCount, } while ((nErr == 0) && aValIter.GetNext(fVal, nErr)); } + if ( nErr ) + { + SetError(nErr); + return; + } } break; case svMatrix : |