sc/source/core/tool/interpr1.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 981ff6dfd8627981462ec7c10a8a74d636d3d0d5 Author: Eike Rathke <er...@redhat.com> Date: Fri May 20 16:35:08 2016 +0200 always use GetNewMat() in interpreter context instead of plain ScFullMatrix() ... so error handling interpreter is set and im-/mutable flagged correctly. Change-Id: I3e2647b6e4a4f4bcfdf7264d6942844941ea6c6b diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx index 8c9484b..1d19f75 100644 --- a/sc/source/core/tool/interpr1.cxx +++ b/sc/source/core/tool/interpr1.cxx @@ -4733,7 +4733,7 @@ double ScInterpreter::IterateParametersIf( ScIterFuncIf eFunc ) break; case svExternalSingleRef: { - pSumExtraMatrix = new ScFullMatrix(1, 1, 0.0); + pSumExtraMatrix = GetNewMat(1,1); ScExternalRefCache::TokenRef pToken; PopExternalSingleRef(pToken); if (!pToken) @@ -6008,7 +6008,7 @@ void ScInterpreter::ScLookup() ScMatrixRef pDataMat2; if (bVertical) { - ScMatrixRef pTempMat(new ScFullMatrix(1, nR, 0.0)); + ScMatrixRef pTempMat = GetNewMat(1, nR); for (SCSIZE i = 0; i < nR; ++i) if (pDataMat->IsValue(0, i)) pTempMat->PutDouble(pDataMat->GetDouble(0, i), 0, i); @@ -6018,7 +6018,7 @@ void ScInterpreter::ScLookup() } else { - ScMatrixRef pTempMat(new ScFullMatrix(nC, 1, 0.0)); + ScMatrixRef pTempMat = GetNewMat(nC, 1); for (SCSIZE i = 0; i < nC; ++i) if (pDataMat->IsValue(i, 0)) pTempMat->PutDouble(pDataMat->GetDouble(i, 0), i, 0); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits