Skip to content

Commit

Permalink
Merge pull request 'Fix bug #72657' (#188) from fix/bug72657 into rel…
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaSubbotina committed Jan 27, 2025
2 parents 0350675 + b91dfb0 commit d395e63
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PtgExtraList : public Ptg
// No type info

const std::wstring toString() const;
private:

Boolean<unsigned char> hasColumns;
unsigned char rowType;
_UINT16 cch;
Expand Down
6 changes: 6 additions & 0 deletions MsBinaryFile/XlsFile/Format/Logic/Biff_structures/PtgList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
*/

#include "PtgList.h"
#include "PtgExtraList.h"
#include "../../../../../OOXML/Base/Unit.h"

namespace XLS
Expand Down Expand Up @@ -98,6 +99,11 @@ void PtgList::assemble(AssemblerStack& ptg_stack, PtgQueue& extra_data, bool ful
{
tableName = tableIndex->second;
}
else if(nonresident && !extra_data.empty())
{
auto extraList = static_cast<PtgExtraList*>(extra_data.front().get());
tableName = extraList->table;
}
else
{
tableName = XmlUtils::GenerateGuid();
Expand Down
4 changes: 4 additions & 0 deletions OOXML/XlsbFormat/Xlsb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ void OOX::Spreadsheet::CXlsb::PrepareTableFormula()
auto tableName = tableIndex->second;
formula.replace(formula.find(str), str.size(), tableName);
}
else
{
formula.replace(formula.find(str), str.size(), L"#NAME?");
}
}
str = STR::guidFromStr(formula);
}
Expand Down

0 comments on commit d395e63

Please sign in to comment.