summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2019-10-21 17:06:55 +0200
committerEike Rathke <erack@redhat.com>2019-10-21 22:12:42 +0200
commit12b54e485103aad4e7dd26423c355b96403b88ba (patch)
treeb1b41e40a60e57f9be3d685a7a8c98060fed111a
parent1d4de2b6ef8a84481a8bc9daffa946c1ac77a7ae (diff)
Related: tdf#127982 In JumpMatrix do not propagate individual errors as global
Which for https://bugs.documentfoundation.org/attachment.cgi?id=154776 was the case in sheet1 МультиВПР.E6:E20 even in the to-be-fixed SMALL() implementation. The error is propagated as usual individual matrix element coded double error. Change-Id: I5fc6fa3454b354a4017a51a640b96ec80f74f4a4 Reviewed-on: https://gerrit.libreoffice.org/81252 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins
-rw-r--r--sc/source/core/tool/interpr1.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 47c22449c581..16a9d933ed03 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -777,6 +777,10 @@ bool ScInterpreter::JumpMatrix( short nStackLevel )
}
else
{
+ // GetMatrix() does SetErrorInterpreter() at the
+ // matrix, do not propagate an error from
+ // matrix->GetValue() as global error.
+ pMat->SetErrorInterpreter(nullptr);
lcl_storeJumpMatResult(pMat.get(), pJumpMatrix, nC, nR);
}
lcl_AdjustJumpMatrix( pJumpMatrix, nCols, nRows );