Commit 697af46e authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander Trofimov

(2.0.0.234): ASCOfficeDocxFile2

Bug 27107 - [Autosave] Отсутствует диаграмма, добавленная на любой лист, после переоткрытия книги.
Bug 27104 - [Autosave] Красные кресты вместо изображений, добавленных на любой лист, после переоткрытия книги.

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59013 954022d7-b5bf-4e40-9824-e11837661b57
parent ece2818f
......@@ -5549,8 +5549,12 @@ public:
if(false == m_oFileWriter.m_bSaveChartAsImg)
{
// rels
CString sChartsDir;
sChartsDir.Format(_T("%s\\word\\charts"), m_oFileWriter.m_oChartWriter.m_sDir);
if( !NSDirectory::Exists(string2std_string(sChartsDir)) )
OOX::CSystemUtility::CreateDirectories(sChartsDir);
CString sRelsDir;
sRelsDir.Format(_T("%s\\word\\charts\\_rels"), m_oFileWriter.m_oChartWriter.m_sDir);
sRelsDir.Format(_T("%s\\_rels"), sChartsDir);
if( !NSDirectory::Exists(string2std_string(sRelsDir)) )
OOX::CSystemUtility::CreateDirectories(sRelsDir);
m_oFileWriter.m_pDrawingConverter->SetDstContentRels();
......
......@@ -2,6 +2,6 @@
//2
//0
//0
//233
#define INTVER 2,0,0,233
#define STRVER "2,0,0,233\0"
//234
#define INTVER 2,0,0,234
#define STRVER "2,0,0,234\0"
......@@ -1838,8 +1838,12 @@ namespace BinXlsxRW {
}
else if(c_oSerWorksheetsTypes::Drawings == type)
{
CString sDrawingsDir;
sDrawingsDir.Format(_T("%s\\xl\\drawings"), m_sDestinationDir);
if( !NSDirectory::Exists(string2std_string(sDrawingsDir)) )
OOX::CSystemUtility::CreateDirectories(sDrawingsDir);
CString sRelsDir;
sRelsDir.Format(_T("%s\\xl\\drawings\\_rels"), m_sDestinationDir);
sRelsDir.Format(_T("%s\\_rels"), sDrawingsDir);
if( !NSDirectory::Exists(string2std_string(sRelsDir)) )
OOX::CSystemUtility::CreateDirectories(sRelsDir);
......@@ -2416,8 +2420,12 @@ namespace BinXlsxRW {
if(c_oSer_DrawingType::Chart2 == type)
{
// rels
CString sChartsDir;
sChartsDir.Format(_T("%s\\xl\\charts"), m_sDestinationDir);
if( !NSDirectory::Exists(string2std_string(sChartsDir)) )
OOX::CSystemUtility::CreateDirectories(sChartsDir);
CString sRelsDir;
sRelsDir.Format(_T("%s\\xl\\charts\\_rels"), m_sDestinationDir);
sRelsDir.Format(_T("%s\\_rels"), sChartsDir);
if( !NSDirectory::Exists(string2std_string(sRelsDir)) )
OOX::CSystemUtility::CreateDirectories(sRelsDir);
m_pOfficeDrawingConverter->SetDstContentRels();
......
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