Merge pull request 'fix/bug76076' (#551) from fix/bug76076 into develop

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/551
This commit is contained in:
Elena Subbotina
2025-11-28 11:58:23 +00:00
6 changed files with 26 additions and 11 deletions

View File

@ -409,16 +409,17 @@ const bool StringPtgParser::parseToPtgs(const std::wstring& assembled_formula, R
rgce.addPtg(PtgPtr(new PtgName(number, OperandPtg::ptg_REFERENCE)));
}
}
else if(SyntaxPtg::extract_UndefinedName(it, itEnd)) // Shall be placed strongly after extract_PtgName
{
rgce.addPtg(found_operand = OperandPtgPtr(new PtgErr(L"#REF!")));
}
else if(SyntaxPtg::extract_PtgArray(it, itEnd, operand_str))
{
rgce.addPtg(found_operand = OperandPtgPtr(new PtgArray(OperandPtg::ptg_ARRAY)));
rgb.addPtg(PtgPtr(new PtgExtraArray(operand_str)));
}
else if(SyntaxPtg::extract_UndefinedName(it, itEnd)) // Shall be placed strongly after extract_PtgName
{
rgce.addPtg(found_operand = OperandPtgPtr(new PtgErr(L"#REF!")));
}
else
{