Resolves: tdf#153924 handle non-numeric and error values in rank array
commit019e751c71dcb2d34c6fd8bb9dda267c6ba2b48e
authorEike Rathke <erack@redhat.com>
Fri, 3 Mar 2023 12:39:03 +0000 (3 13:39 +0100)
committerEike Rathke <erack@redhat.com>
Sat, 4 Mar 2023 00:36:13 +0000 (4 00:36 +0000)
tree3da89559d8ad485cd0bb9456880293c5625dc163
parentdb5b7400aec082dacdc09f8b741c70aa5852f25c
Resolves: tdf#153924 handle non-numeric and error values in rank array

... of LARGE()/SMALL() instead of yielding error value for all result
elements.

Fallout from

    commit e4c2d0bb57ab8ea8f5c400d103d01376b8140f22
    CommitDate: Fri Nov 30 22:14:17 2018 +0100

        i#32345 Support a matrix of rank argument for LARGE()/SMALL()

that in ScInterpreter::GetTopNumberArray() required the entire
rank array would have to be numeric, which with an empty cell or
string it isn't.

Change-Id: Ieaa1a68bb8f98614119550b1442665b6fbb4817a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148178
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
sc/source/core/tool/interpr3.cxx