a few more candidates for errMatrixSize

Change-Id: Ia3ea04d15ce73526e87dfb5670eedff983daa40e
This commit is contained in:
Eike Rathke
2016-03-07 19:30:30 +01:00
parent 36483fde78
commit 25d8652796
2 changed files with 3 additions and 3 deletions

View File

@@ -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 )

View File

@@ -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;