Commit 2dc5c291 authored by ElenaSubbotina's avatar ElenaSubbotina

..

parent 5f9631a3
...@@ -129,6 +129,9 @@ namespace PPTX ...@@ -129,6 +129,9 @@ namespace PPTX
} }
virtual std::wstring toXML() const virtual std::wstring toXML() const
{ {
if (!bodyPr.IsInit())
bodyPr = new Logic::BodyPr();
XmlUtils::CNodeValue oValue; XmlUtils::CNodeValue oValue;
oValue.WriteNullable(bodyPr); oValue.WriteNullable(bodyPr);
...@@ -140,6 +143,9 @@ namespace PPTX ...@@ -140,6 +143,9 @@ namespace PPTX
virtual void toXmlWriter(NSBinPptxRW::CXmlWriter* pWriter) const virtual void toXmlWriter(NSBinPptxRW::CXmlWriter* pWriter) const
{ {
if (!bodyPr.IsInit())
bodyPr = new Logic::BodyPr();
pWriter->StartNode(m_name); pWriter->StartNode(m_name);
pWriter->EndAttributes(); pWriter->EndAttributes();
...@@ -161,10 +167,9 @@ namespace PPTX ...@@ -161,10 +167,9 @@ namespace PPTX
void toXmlWriterExcel(NSBinPptxRW::CXmlWriter* pWriter) const void toXmlWriterExcel(NSBinPptxRW::CXmlWriter* pWriter) const
{ {
/* if (!bodyPr.IsInit())
pWriter->StartNode(_T("c:rich")); bodyPr = new Logic::BodyPr();
pWriter->EndAttributes();
*/
if (bodyPr.IsInit()) if (bodyPr.IsInit())
{ {
bodyPr->m_namespace = _T("a"); bodyPr->m_namespace = _T("a");
...@@ -252,9 +257,6 @@ namespace PPTX ...@@ -252,9 +257,6 @@ namespace PPTX
} }
pReader->Seek(_end_rec); pReader->Seek(_end_rec);
if (!bodyPr.IsInit())
bodyPr = new Logic::BodyPr();
} }
nullable<BodyPr> bodyPr; nullable<BodyPr> bodyPr;
......
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