This commit is contained in:
Viktor Andreev
2023-12-28 19:08:09 +06:00
parent 153f522a82
commit 0288ee87bd
6 changed files with 124 additions and 48 deletions

View File

@ -39,6 +39,8 @@
#include "../Biff_records/SXFDB.h"
#include "../Biff_records/SxName.h"
#include "../Biff_records/SXPair.h"
#include "../../../../../OOXML/XlsbFormat/Biff12_records/BeginPName.h"
namespace XLS
{
@ -127,6 +129,18 @@ void PtgSxName::assemble(AssemblerStack& ptg_stack, PtgQueue& extra_data, bool f
}
}
}
else if(static_cast<XLSB::BeginPName*>(global_info->arPivotSxNames[sxIndex].name.get()))
{
auto pname = static_cast<XLSB::BeginPName*>(global_info->arPivotSxNames[sxIndex].name.get());
if(pname->ifdb >=0 && pname->ifdb < global_info->arPivotCacheSxNames.size())
{
_Name = global_info->arPivotCacheSxNames[pname->ifdb];
if (std::wstring::npos != _Name.find(L" "))
{
_Name = L"'" + _Name + L"'";
}
}
}
ptg_stack.push(_Name);
}
else