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

(2.0.0.241): ASCOfficeDocxFile2

Bug 27244 - [Autosave] Потеря изображений после вставки скопированного содержимого документа и переоткрытия

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59665 954022d7-b5bf-4e40-9824-e11837661b57
parent 33d016a7
......@@ -2,6 +2,6 @@
//2
//0
//0
//240
#define INTVER 2,0,0,240
#define STRVER "2,0,0,240\0"
//241
#define INTVER 2,0,0,241
#define STRVER "2,0,0,241\0"
......@@ -115,16 +115,40 @@ namespace NSBinPptxRW
if (pPair != m_mapImages.end())
return pPair->second;
if (IsNeedDownload(strInput))
return DownloadImage(strInput);
CString strExts = _T(".jpg");
int nIndexExt = strInput.ReverseFind(TCHAR('.'));
if (-1 != nIndexExt)
strExts = strInput.Mid(nIndexExt);
if (IsNeedDownload(strInput))
{
//todo js
//, copy/paste
if(strExts == _T(".svg"))
{
CString strInputMetafile = strInput.Left(strInput.GetLength() - strExts.GetLength());
CString sDownloadRes = DownloadImage(strInputMetafile + _T(".wmf"));
if(sDownloadRes.IsEmpty())
sDownloadRes = DownloadImage(strInputMetafile + _T(".emf"));
return sDownloadRes;
}
else
return DownloadImage(strInput);
}
if (strExts == _T(".tmp"))
{
//todo
// DownloadImage
strExts = _T(".png");
int nIndexExt = strBase64Image.ReverseFind(TCHAR('.'));
if (-1 != nIndexExt)
{
CString strExtsTemp = strBase64Image.Mid(nIndexExt);
if(_T(".wmf") == strExtsTemp || _T(".emf") == strExtsTemp)
strExts = strExtsTemp;
}
}
CString strMetafileImage = _T("");
if (strExts == _T(".svg"))
......
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