Commit 511f043d authored by ElenaSubbotina's avatar ElenaSubbotina

.

parent 69a41343
...@@ -1687,6 +1687,7 @@ void CDrawingConverter::doc_LoadShape(PPTX::Logic::SpTreeElem *elem, XmlUtils::C ...@@ -1687,6 +1687,7 @@ void CDrawingConverter::doc_LoadShape(PPTX::Logic::SpTreeElem *elem, XmlUtils::C
NSPresentationEditor::CShapeElement oShapeElem; NSPresentationEditor::CShapeElement oShapeElem;
CPPTShape* pPPTShape = NULL; CPPTShape* pPPTShape = NULL;
bool bSetShape = false;
if (L"v:background" == strNameNode) if (L"v:background" == strNameNode)
{ {
...@@ -1885,6 +1886,7 @@ void CDrawingConverter::doc_LoadShape(PPTX::Logic::SpTreeElem *elem, XmlUtils::C ...@@ -1885,6 +1886,7 @@ void CDrawingConverter::doc_LoadShape(PPTX::Logic::SpTreeElem *elem, XmlUtils::C
} }
} }
oShapeElem.m_pShape->setBaseShape(CBaseShapePtr(pPPTShape)); oShapeElem.m_pShape->setBaseShape(CBaseShapePtr(pPPTShape));
bSetShape = true;
if (bIsNeedCoordSizes) if (bIsNeedCoordSizes)
{ {
...@@ -1895,7 +1897,8 @@ void CDrawingConverter::doc_LoadShape(PPTX::Logic::SpTreeElem *elem, XmlUtils::C ...@@ -1895,7 +1897,8 @@ void CDrawingConverter::doc_LoadShape(PPTX::Logic::SpTreeElem *elem, XmlUtils::C
if (pPPTShape != NULL) if (pPPTShape != NULL)
{ {
oShapeElem.m_pShape->setBaseShape(CBaseShapePtr(pPPTShape)); if (!bSetShape)
oShapeElem.m_pShape->setBaseShape(CBaseShapePtr(pPPTShape));
if (bIsNeedCoordSizes) if (bIsNeedCoordSizes)
{ {
LoadCoordSize(oNodeShape, oShapeElem.m_pShape); LoadCoordSize(oNodeShape, oShapeElem.m_pShape);
......
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