a few more candidates for errMatrixSize
Change-Id: Ia3ea04d15ce73526e87dfb5670eedff983daa40e
This commit is contained in:
@@ -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 )
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user