summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-03-07 19:30:30 +0100
committerEike Rathke <erack@redhat.com>2016-03-07 20:33:41 +0100
commit25d8652796f7cae024dbfcbd5347280f9689797c (patch)
treeb59f7be5b5b90ce582095a2f58845b37af81e777 /sc
parent36483fde78b872a362b7f606d8e5371c231a2957 (diff)
a few more candidates for errMatrixSize
Change-Id: Ia3ea04d15ce73526e87dfb5670eedff983daa40e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/tool/interpr3.cxx2
-rw-r--r--sc/source/core/tool/interpr5.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx
index db7ee1961d67..4dc25305406a 100644
--- a/sc/source/core/tool/interpr3.cxx
+++ b/sc/source/core/tool/interpr3.cxx
@@ -3775,7 +3775,7 @@ void ScInterpreter::GetSortArray( sal_uInt8 nParamCount, vector<double>& rSortAr
{
GetNumberSequenceArray( nParamCount, rSortArray, bConvertTextInArray );
if (rSortArray.size() > MAX_ANZ_DOUBLE_FOR_SORT)
- SetError( errStackOverflow);
+ SetError( errMatrixSize);
else if ( rSortArray.empty() )
{
if ( bAllowEmptyArray )
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index ef551383bedc..479b9ca35f8b 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -331,7 +331,7 @@ ScMatrixRef ScInterpreter::GetNewMat(SCSIZE nC, SCSIZE nR, bool bEmpty)
pMat->GetDimensions( nCols, nRows);
if ( nCols != nC || nRows != nR )
{ // arbitray limit of elements exceeded
- SetError( errStackOverflow);
+ SetError( errMatrixSize);
pMat.reset();
}
return pMat;
@@ -2994,7 +2994,7 @@ void ScInterpreter::CalculateTrendGrowth(bool _bGrowth)
ScMatrixRef pCopyY = pMatY->CloneIfConst();
if (!pCopyX || !pCopyY)
{
- PushError(errStackOverflow);
+ PushError(errMatrixSize);
return;
}
pMatX = pCopyX;