diff options
author | Eike Rathke <erack@redhat.com> | 2019-01-15 19:59:53 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2019-01-16 11:17:14 +0100 |
commit | d0ded163d8e93dc5b10d7a7c9bdab1d0a6a50bac (patch) | |
tree | 95b4ff7862ba6114f0f4072fb244586e1b4d882b /include/formula | |
parent | d08425c14b29bbac9f33c234f89b451388cd1d7c (diff) |
Related: tdf#122301 FREQUENCY() with ForceArrayReturn on caller
FREQUENCY() forces its direct caller into array mode, but only for
the immediate subexpression and not for further operators of the
same parameter.
This weird Excel behaviour is stated in
ECMA-376-1:2016 OOXML 18.17.7.127 FREQUENCY
"A call to FREQUENCY shall be an array formula."
somewhat unclear what it actually applies to, but it turned out
that "a call" is indeed *only* THE direct call, see
https://bugs.documentfoundation.org/show_bug.cgi?id=122301#c19
Change-Id: I145d8fe26d75d5af25b987e190bf35f2d2c03ec6
Reviewed-on: https://gerrit.libreoffice.org/66407
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/paramclass.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/formula/paramclass.hxx b/include/formula/paramclass.hxx index a1e564819457..30773c35e016 100644 --- a/include/formula/paramclass.hxx +++ b/include/formula/paramclass.hxx @@ -67,7 +67,12 @@ namespace formula Reference in JumpMatrix context should use the result matrix instead of the array of references. Never used as initial parameter classification. */ - SuppressedReferenceOrForceArray + SuppressedReferenceOrForceArray, + + /** A function return forces the caller into array mode for this one + call, making it behave like it had ForceArray but not propagated to + any further operators in the same parameter. */ + ForceArrayReturn }; } |