Commit 9ff6c010 authored by Sergey Konovalov's avatar Sergey Konovalov Committed by GitHub

Merge pull request #14 from ONLYOFFICE/hotfix/v4.1.2

Hotfix/v4.1.2
parents 964f057a 181eb8cf
...@@ -101,7 +101,6 @@ namespace PPTX ...@@ -101,7 +101,6 @@ namespace PPTX
{ {
xfrm.Merge(pic->spPr.xfrm); xfrm.Merge(pic->spPr.xfrm);
} }
return;
} }
XmlUtils::CXmlNode oNode3 = oNodeData.ReadNodeNoNS(_T("AlternateContent")); XmlUtils::CXmlNode oNode3 = oNodeData.ReadNodeNoNS(_T("AlternateContent"));
if (oNode3.IsValid()) if (oNode3.IsValid())
......
...@@ -128,13 +128,21 @@ namespace PPTX ...@@ -128,13 +128,21 @@ namespace PPTX
void COLEObject::toPPTY(NSBinPptxRW::CBinaryFileWriter* pWriter) const void COLEObject::toPPTY(NSBinPptxRW::CBinaryFileWriter* pWriter) const
{ {
std::wstring sData; std::wstring sData;
if(m_oId.IsInit() && m_sProgId.IsInit() && 0 == m_sProgId.get().Find(L"asc.")) if((m_oId.IsInit() || m_sFilepathBin.IsInit()) && m_sProgId.IsInit() && 0 == m_sProgId.get().Find(L"asc."))
{ {
FileContainer* pRels = NULL; CString sFilePath;
if (pWriter->m_pCommonRels->is_init()) if (m_sFilepathBin.IsInit())
pRels = pWriter->m_pCommonRels->operator ->(); {
sFilePath = m_sFilepathBin.get();
}
else if (m_oId.IsInit())
{
FileContainer* pRels = NULL;
if (pWriter->m_pCommonRels->is_init())
pRels = pWriter->m_pCommonRels->operator ->();
CString sFilePath = this->GetFullOleName(PPTX::RId(m_oId.get()), pRels); sFilePath = this->GetFullOleName(PPTX::RId(m_oId.get()), pRels);
}
if(!sFilePath.IsEmpty()) if(!sFilePath.IsEmpty())
{ {
sData = GetOleData(string2std_string(sFilePath)); sData = GetOleData(string2std_string(sFilePath));
...@@ -338,6 +346,8 @@ namespace PPTX ...@@ -338,6 +346,8 @@ namespace PPTX
spPr.SetParentPointer(this); spPr.SetParentPointer(this);
if (style.IsInit()) if (style.IsInit())
style->SetParentPointer(this); style->SetParentPointer(this);
if (oleObject.IsInit())
oleObject->SetParentPointer(this);
} }
void Pic::GetRect(Aggplus::RECT& pRect)const void Pic::GetRect(Aggplus::RECT& pRect)const
......
...@@ -297,7 +297,6 @@ namespace OOX ...@@ -297,7 +297,6 @@ namespace OOX
{ {
delete pOleObject; delete pOleObject;
} }
m_mapOleObjects[pOleObject->m_oShapeId->GetValue()] = pOleObject;
} }
} }
} }
......
[![License](https://img.shields.io/badge/License-GNU%20AGPL%20V3-green.svg?style=flat)](http://www.gnu.org/licenses/agpl-3.0.ru.html) ![Release](https://img.shields.io/badge/Release-v4.1.1-blue.svg?style=flat) ![x2tconverter](https://img.shields.io/badge/x2tconverter-v2.0.2.376-blue.svg?style=flat) ![Platforms Windows | OS X | Linux](https://img.shields.io/badge/Platforms-Windows%20%7C%20OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat) [![License](https://img.shields.io/badge/License-GNU%20AGPL%20V3-green.svg?style=flat)](http://www.gnu.org/licenses/agpl-3.0.ru.html) ![Release](https://img.shields.io/badge/Release-v4.1.2-blue.svg?style=flat) ![x2tconverter](https://img.shields.io/badge/x2tconverter-v2.0.2.376-blue.svg?style=flat) ![Platforms Windows | OS X | Linux](https://img.shields.io/badge/Platforms-Windows%20%7C%20OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat)
## Core ## Core
Server core components which are a part of [ONLYOFFICE Document Server][2]. Enable the conversion between the most popular office document formats: DOC, DOCX, ODT, RTF, TXT, PDF, HTML, EPUB, XPS, DjVu, XLS, XLSX, ODS, CSV, PPT, PPTX, ODP. Server core components which are a part of [ONLYOFFICE Document Server][2]. Enable the conversion between the most popular office document formats: DOC, DOCX, ODT, RTF, TXT, PDF, HTML, EPUB, XPS, DjVu, XLS, XLSX, ODS, CSV, PPT, PPTX, ODP.
......
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