Skip to content

Commit

Permalink
fix bug #66440
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaSubbotina committed Feb 10, 2024
1 parent cf19a91 commit fb72c73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MsBinaryFile/XlsFile/Format/Logic/GlobalWorkbookInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "Biff_records/Format.h"

#include "../../../../DesktopEditor/graphics/pro/Fonts.h"
#include "../../../../OOXML/Base/Unit.h"

namespace XLS
{
Expand Down Expand Up @@ -382,7 +383,7 @@ _UINT16 GlobalWorkbookInfo::RegisterNumFormat(_UINT16 ifmt, const std::wstring &
fmt->ifmt = ifmt;
fmt->ifmt_used = ifmt_used;

fmt->stFormat = format_code;
fmt->stFormat = XmlUtils::EncodeXmlString(format_code, true);

m_mapNumFormats.insert(std::make_pair(fmt->ifmt_used, BaseObjectPtr(fmt)));
}
Expand Down

0 comments on commit fb72c73

Please sign in to comment.