diff --git a/ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp b/ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp index d99e8a6ca2..3784960185 100644 --- a/ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp +++ b/ASCOfficeDocFile/DocDocxConverter/DocumentMapping.cpp @@ -571,7 +571,10 @@ namespace DocFileFormat m_pXmlWriter->WriteNodeEnd( _T( "w:object" ) ); } - this->_skipRuns = 5; + if (search(f.begin(), f.end(), embed.begin(), embed.end()) != f.end() ) + this->_skipRuns = 3; + else + this->_skipRuns = 5; } else { diff --git a/ASCOfficeDocFile/DocFormatLib/Win32/DocFormatLib.vcproj b/ASCOfficeDocFile/DocFormatLib/Win32/DocFormatLib.vcproj index e192a0ce7f..1d711e621c 100644 --- a/ASCOfficeDocFile/DocFormatLib/Win32/DocFormatLib.vcproj +++ b/ASCOfficeDocFile/DocFormatLib/Win32/DocFormatLib.vcproj @@ -107,8 +107,8 @@