Commit 1aa0b039 authored by ElenaSubbotina's avatar ElenaSubbotina

XlsFormat - fix pivots after testing

parent e2ada4ca
......@@ -193,6 +193,8 @@ int PIVOTVIEW::serialize(std::wostream & strm)
core->m_PIVOTPI->serialize(CP_XML_STREAM());
}
}
if (core->m_arSXDI.empty() == false)
{
CP_XML_NODE(L"dataFields")
{
CP_XML_ATTR(L"count", view->cDimData);
......@@ -201,6 +203,7 @@ int PIVOTVIEW::serialize(std::wostream & strm)
core->m_arSXDI[i]->serialize(CP_XML_STREAM());
}
}
}
//CP_XML_NODE(L"pivotTableStyleInfo")
//{
// CP_XML_ATTR(L"showRowHeaders", 1);
......
......@@ -38,6 +38,8 @@
#include "../Biff_records/SXString.h"
#include "../Biff_records/SXDtr.h"
#include <boost/lexical_cast.hpp>
namespace XLS
{
......@@ -85,7 +87,7 @@ const bool SXOPER::loadContent(BinProcessor& proc)
if (bInteger)
value = std::to_wstring((int)num->num.data.value);
else
value = std::to_wstring(num->num.data.value);
value = boost::lexical_cast<std::wstring>(num->num.data.value);
}
else if(proc.optional<SxBool>())
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment