Merge pull request #1605 from ONLYOFFICE/fix/bug66675

Fix bug #66675
This commit is contained in:
Elena Subbotina
2024-07-29 14:50:03 +03:00
committed by GitHub
6 changed files with 46 additions and 15 deletions

View File

@ -759,10 +759,13 @@ bool isColumn(const std::wstring& columnName, _UINT32 listIndex, _UINT16& indexC
if(arrColumn != XLS::GlobalWorkbookInfo::mapTableColumnNames_static.end())
{
indexColumn = -1;
auto unqotedName = columnName;
if(!unqotedName.empty() && unqotedName.at(0) == '\'')
unqotedName = unqotedName.substr(1, unqotedName.size() - 1);
for (const auto& itemColumn : arrColumn->second)
{
++indexColumn;
if (columnName == itemColumn)
if (unqotedName == itemColumn)
{
return true;
}