summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2020-09-11 19:30:28 +0200
committerCaolán McNamara <caolanm@redhat.com>2020-09-12 15:25:54 +0200
commit181c737d5f2ed3718612dcafeaf458f5f147ce89 (patch)
tree3d23027ee4e57672ccc0beb171fb1081bfe9a790
parent51c17d2bdb35fdb4ab21a94d3bba40f97dc5c138 (diff)
Resolves: tdf#107459 MATCH() in descending sorted array find last equal value
... not reverse the first equal value. This only affected the array/matrix argument case, not cell references. Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102493 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Jenkins (cherry picked from commit 6f80e2d37ce11e3ea728b7ce5987f912fdfa60b3) Conflicts: sc/source/core/tool/interpr1.cxx Change-Id: I0ff574a5132b6ee93789ac32f6c5de02465263f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102428 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/core/tool/interpr1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 4de760cedd0d..a7c0012a7ad0 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -4981,7 +4981,7 @@ void ScInterpreter::ScMatch()
if (nCmp == 0)
{
// exact match. find the last item with the same value.
- lcl_GetLastMatch( nMid, aMatAcc, nMatCount, !bAscOrder);
+ lcl_GetLastMatch( nMid, aMatAcc, nMatCount, false);
PushDouble( nMid+1);
return;
}