formula/source/core/api/FormulaCompiler.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 4de8df5e5e848c38fc419dc1e55c656611cab1be Author: Eike Rathke <er...@redhat.com> AuthorDate: Sun May 26 17:12:39 2024 +0200 Commit: Xisco Fauli <xiscofa...@libreoffice.org> CommitDate: Mon May 27 11:05:41 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 <er...@redhat.com> (cherry picked from commit 62e88a17fd5f803806a31ef6f56a241b55a88f5d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168059 Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org> diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index dc9c73d7937d..90366e0bcedb 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -1493,8 +1493,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.