summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-02-06 18:14:52 +0100
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-02-06 19:31:46 +0000
commitb4c78b8480b1cc1e867180fc994f5c5162fa3e42 (patch)
tree2038b505b63516224ef35e58a9279e3aefe8b37a
parent1c59d78cde9fcb8a43d7ff75db5d6fcf5f3c1d53 (diff)
resolved fdo#60366 make MATCH() accept a single cell reference
Change-Id: I7059abdb6232b95e0b940b34f74bf87182510146 (cherry picked from commit c0fdab890086c2cb749c348db42eb760e31539de) Reviewed-on: https://gerrit.libreoffice.org/2019 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Kohei Yoshida <kohei.yoshida@gmail.com> Tested-by: Kohei Yoshida <kohei.yoshida@gmail.com>
-rw-r--r--sc/source/core/tool/interpr1.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index 58413af57148..42a08254d863 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -4660,6 +4660,12 @@ void ScInterpreter::ScMatch()
switch (GetStackType())
{
+ case svSingleRef:
+ PopSingleRef( nCol1, nRow1, nTab1);
+ nCol2 = nCol1;
+ nRow2 = nRow1;
+ nTab2 = nTab1;
+ break;
case svDoubleRef:
{
PopDoubleRef(nCol1, nRow1, nTab1, nCol2, nRow2, nTab2);