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

Bug 30224 - Теряются изображения после загрузки XLSX файла;version берется из .pro файла.

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64537 954022d7-b5bf-4e40-9824-e11837661b57
parent 8ae51d20
...@@ -540,7 +540,11 @@ namespace NSShapeImageGen ...@@ -540,7 +540,11 @@ namespace NSShapeImageGen
{ {
//случай растрового wmf/emf //случай растрового wmf/emf
CString strSaveItem = strSaveItemWE + _T(".png"); CString strSaveItem = strSaveItemWE + _T(".png");
if(lWidth <= 0)
lWidth = -1;
if(lHeight <= 0)
lHeight = -1;
//-1 == lHeight имеет спецальное значение(берет размеры из файла)
metaFileRaster.ConvertToRaster(strSaveItem, 4 /*CXIMAGE_FORMAT_PNG*/, lWidth, lHeight); metaFileRaster.ConvertToRaster(strSaveItem, 4 /*CXIMAGE_FORMAT_PNG*/, lWidth, lHeight);
bIsSuccess = NSFile::CFileBinary::Exists(string2std_string(strSaveItem)); bIsSuccess = NSFile::CFileBinary::Exists(string2std_string(strSaveItem));
......
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