Commit 884b0eb5 authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

PptFormatReader - bug #31885

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@68840 954022d7-b5bf-4e40-9824-e11837661b57
parent 7ebd343f
......@@ -670,19 +670,16 @@ void NSPresentationEditor::CShapeWriter::WriteTextInfo()
m_oWriter.WriteString(std::wstring(L"<a:bodyPr" ));
// int __l = (int)((m_oBounds.left + m_oTextRect.left) * EMU_MM);
//int __t = (int)((m_oBounds.top + m_oTextRect.top) * EMU_MM);
//int __r = (int)((m_oBounds.right - m_oTextRect.right)* EMU_MM);
//int __b = (int)((m_oBounds.bottom - m_oTextRect.bottom)* EMU_MM);
int __l = (int)((- m_oBounds.left + m_oTextRect.left )* EMU_MM);
int __t = (int)((- m_oBounds.top + m_oTextRect.top )* EMU_MM);
int __r = (int)(( m_oBounds.right - m_oTextRect.right )* EMU_MM);
int __b = (int)(( m_oBounds.bottom - m_oTextRect.bottom)* EMU_MM);
//if (true)
//{
// CString str;
// str.Format(L" lIns=\"%d\" tIns=\"%d\" rIns=\"%d\" bIns=\"%d\"",__l, __t, __r, __b);
// m_oWriter.WriteString(str);
//}
//else
m_oWriter.WriteString(std::wstring(L" lIns=\"0\" tIns=\"0\" rIns=\"0\" bIns=\"0\""));
CString str;
str.Format(L" lIns=\"%d\" tIns=\"%d\" rIns=\"%d\" bIns=\"%d\"",__l, __t, __r, __b);
m_oWriter.WriteString(str);
// m_oWriter.WriteString(std::wstring(L" lIns=\"0\" tIns=\"0\" rIns=\"0\" bIns=\"0\""));
if (m_pShapeElement->m_oShape.m_oText.m_oAttributes.m_nTextAlignVertical == 0 )
m_oWriter.WriteString(" anchor=\"t\"");
......
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