diff options
-rw-r--r-- | sc/source/core/tool/scmatrix.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index d0d3fce9a427..d6452acc26c1 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -502,7 +502,10 @@ void ScMatrixImpl::PutDouble(double fVal, SCSIZE nC, SCSIZE nR) void ScMatrixImpl::PutDouble(const double* pArray, size_t nLen, SCSIZE nC, SCSIZE nR) { if (ValidColRow( nC, nR)) - maMat.set(nR, nC, pArray, pArray + nLen); + { + double* p = const_cast<double*>(pArray); + maMat.set(nR, nC, p, p + nLen); + } else { OSL_FAIL("ScMatrixImpl::PutDouble: dimension error"); |