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

падение: в некоторых случаях не выделялась память при конвертации в docx в vml

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@60515 954022d7-b5bf-4e40-9824-e11837661b57
parent 07ff1a34
...@@ -673,6 +673,7 @@ public: ...@@ -673,6 +673,7 @@ public:
if (lType == c_nPathType) if (lType == c_nPathType)
{ {
m_oWriter.AddSize(20);
if (!m_bIsFillPart) if (!m_bIsFillPart)
{ {
m_oWriter.AddCharNoCheck((WCHAR)'n'); m_oWriter.AddCharNoCheck((WCHAR)'n');
...@@ -839,7 +840,7 @@ private: ...@@ -839,7 +840,7 @@ private:
} }
inline void CurveTo(const double& x1, const double& y1, const double& x2, const double& y2, const double& x3, const double& y3) inline void CurveTo(const double& x1, const double& y1, const double& x2, const double& y2, const double& x3, const double& y3)
{ {
m_oWriter.AddSize(80); m_oWriter.AddSize(90);
m_oWriter.AddCharNoCheck((WCHAR)'c'); m_oWriter.AddCharNoCheck((WCHAR)'c');
m_oWriter.AddIntNoCheck(int(x1 + 0.5)); m_oWriter.AddIntNoCheck(int(x1 + 0.5));
m_oWriter.AddCharNoCheck((WCHAR)','); m_oWriter.AddCharNoCheck((WCHAR)',');
......
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