Commit d9979d12 authored by ElenaSubbotina's avatar ElenaSubbotina

fix 3135585.doc

parent 81f8b67d
......@@ -678,7 +678,7 @@ namespace DocFileFormat
break;
}
}break;
// Word Art)
// Word Art
case gtextUNICODE:
{
std::wstring text = NSStringExt::CConverter::GetUnicodeFromUTF16((unsigned short*)iter->opComplex, (iter->op)/2);
......@@ -1008,7 +1008,7 @@ namespace DocFileFormat
WriteEndShapeNode(pShape);
//ShapeType
if (NULL != pShape->GetShapeType() && !m_isInlineShape) //bullete only???
if (NULL != pShape->GetShapeType()/* && !m_isInlineShape*/) //bullete only???
{
VMLShapeTypeMapping oXmlMapper(m_pXmlWriter);
pShape->GetShapeType()->Convert(&oXmlMapper);
......
......@@ -3630,7 +3630,7 @@ void CDrawingConverter::CheckBrushShape(PPTX::Logic::SpTreeElem& oElem, XmlUtils
Gs_.pos = 100 * 1000;
pGradFill->GsLst.push_back( Gs_ );
}
if (pGradFill->GsLst.size() < 2) //Sindicatum.docx
if (pGradFill->GsLst.size() == 1) //Sindicatum.docx
{
PPTX::Logic::Gs Gs_;
Gs_.pos = 0;
......
......@@ -223,8 +223,6 @@ public:
m_eType = (PPTShapes::ShapeType)id;
}
}
//else
{
CString strAdj = oNodeShapeType.GetAttribute(_T("adj"));
if (strAdj != _T(""))
LoadAdjustValuesList(strAdj);
......@@ -254,6 +252,12 @@ public:
{
LoadPathList(strPath);
}
XmlUtils::CXmlNode oNodeTextPath;
if (oNodeShapeType.GetNode(_T("v:textpath"), oNodeTextPath))
{
if (m_eType < PPTShapes::ShapeType::sptCTextPlain || m_eType > PPTShapes::ShapeType::sptCTextCanDown)
m_eType = PPTShapes::ShapeType::sptCTextPlain;
}
CString strFilled = oNodeShapeType.GetAttribute(_T("filled"));
......
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