This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch odf13-devel in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit ee0af7e3d4c4c9476dafa02904c8c5d383774eed Author: Jim Jagielski <[email protected]> AuthorDate: Fri Oct 30 12:58:23 2026 -0400 formula: Correct the ForceArrayOperator comment on nested scalar parameters --- main/formula/inc/formula/FormulaCompiler.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/formula/inc/formula/FormulaCompiler.hxx b/main/formula/inc/formula/FormulaCompiler.hxx index 27a085797f..fde9001698 100644 --- a/main/formula/inc/formula/FormulaCompiler.hxx +++ b/main/formula/inc/formula/FormulaCompiler.hxx @@ -319,8 +319,9 @@ private: static inline void ForceArrayOperator( FormulaTokenRef& rCurr, const FormulaTokenRef& rPrev ) { - // ODF 1.3: the lookup and regression functions take array-mode arguments, but only the - // tokens nested in them are marked, not the function itself (its scalar parameters keep the implicit intersection) + // ODF 1.3: the lookup and regression functions take array-mode arguments, but only the tokens nested in them + // are marked, not the function itself. A bare reference in a scalar parameter keeps the implicit intersection; + // an operator or function nested in that parameter is array-evaluated too. if ( rPrev.Is() && ( rPrev->HasForceArray() || ( rPrev.get() != rCurr.get() && ( rPrev->GetOpCode() == ocHLookup || rPrev->GetOpCode() == ocVLookup || rPrev->GetOpCode() == ocMatch || rPrev->GetOpCode() == ocRGP || rPrev->GetOpCode() == ocRKP ) ) ) &&
