Commit 8d8729a2 authored by Sergey.Tsarkov's avatar Sergey.Tsarkov Committed by Alexander Trofimov

поправлено чтение формул из бинарника

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53271 954022d7-b5bf-4e40-9824-e11837661b57
parent 4710852a
...@@ -3668,10 +3668,9 @@ public: ...@@ -3668,10 +3668,9 @@ public:
{ {
bool bVal = m_oBufferedStream.ReadBool(); bool bVal = m_oBufferedStream.ReadBool();
CString sVal = _T("<m:grow"); CString sVal = _T("<m:grow");
if (bVal) if (!bVal)
sVal += _T(" m:val=\"true\" />"); sVal += _T(" m:val=\"false\" />");
else
sVal += _T(" />");
GetRunStringWriter().WriteString(sVal); GetRunStringWriter().WriteString(sVal);
} }
else else
...@@ -3836,6 +3835,12 @@ public: ...@@ -3836,6 +3835,12 @@ public:
res = Read1(length, &Binary_DocumentTableReader::ReadMathArg, this, poResult); res = Read1(length, &Binary_DocumentTableReader::ReadMathArg, this, poResult);
GetRunStringWriter().WriteString(CString(_T("</m:e>"))); GetRunStringWriter().WriteString(CString(_T("</m:e>")));
} }
else if ( c_oSer_OMathContentType::Lim == type )
{
GetRunStringWriter().WriteString(CString(_T("<m:lim>")));
res = Read1(length, &Binary_DocumentTableReader::ReadMathArg, this, poResult);
GetRunStringWriter().WriteString(CString(_T("</m:lim>")));
}
else if ( c_oSer_OMathContentType::LimUppPr == type ) else if ( c_oSer_OMathContentType::LimUppPr == type )
{ {
GetRunStringWriter().WriteString(CString(_T("<m:limUppPr>"))); GetRunStringWriter().WriteString(CString(_T("<m:limUppPr>")));
......
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