formula/source/core/api/FormulaCompiler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 62e88a17fd5f803806a31ef6f56a241b55a88f5d Author: Eike Rathke <[email protected]> AuthorDate: Sun May 26 17:12:39 2024 +0200 Commit: Eike Rathke <[email protected]> CommitDate: Sun May 26 19:44:50 2024 +0200 Resolves: tdf#160371 Relax significant whitespace intersection pre-check Change-Id: I3bef7c70571ee6ce8c98d60e6f6f017f3760530f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168070 Tested-by: Jenkins Reviewed-by: Eike Rathke <[email protected]> diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 0957a245fffe..71ca0e8f8bd7 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1532,8 +1532,8 @@ bool FormulaCompiler::GetToken() } else if (pSpacesToken && FormulaGrammar::isExcelSyntax( meGrammar) && mpLastToken && mpToken && - isPotentialRangeType( mpLastToken.get(), false, false) && - isPotentialRangeType( mpToken.get(), false, true)) + isPotentialRangeType( mpToken.get(), false, true) && + (mpLastToken->GetOpCode() == ocClose || isPotentialRangeType( mpLastToken.get(), false, false))) { // Let IntersectionLine() <- Factor() decide how to treat this, // once the actual arguments are determined in RPN.
