Commit 3d840334 authored by ElenaSubbotina's avatar ElenaSubbotina

fix added bug 34297

parent 5700503e
...@@ -297,7 +297,13 @@ namespace OOX ...@@ -297,7 +297,13 @@ namespace OOX
case 'x': case 'x':
if ( _T("x:ClientData") == sName ) if ( _T("x:ClientData") == sName )
{
pItem = new OOX::Vml::CClientData( oReader ); pItem = new OOX::Vml::CClientData( oReader );
OOX::Vml::CClientData * client_data = dynamic_cast<OOX::Vml::CClientData*>(pItem);
if ((client_data) && (client_data->m_oObjectType.IsInit()))
if (client_data->m_oObjectType->GetValue() == SimpleTypes::Vml::vmlclientdataobjecttypeNote)
m_bComment = true;
}
break; break;
......
...@@ -56,7 +56,7 @@ namespace OOX ...@@ -56,7 +56,7 @@ namespace OOX
{ {
public: public:
WritingElement_AdditionConstructors(CVmlCommonElements) WritingElement_AdditionConstructors(CVmlCommonElements)
CVmlCommonElements(){} CVmlCommonElements(){m_bComment = false;}
virtual ~CVmlCommonElements(){} virtual ~CVmlCommonElements(){}
...@@ -137,6 +137,9 @@ namespace OOX ...@@ -137,6 +137,9 @@ namespace OOX
std::wstring WriteAttributes() const; std::wstring WriteAttributes() const;
std::wstring WriteElements() const; std::wstring WriteElements() const;
//internal
bool m_bComment;
}; };
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
......
...@@ -219,11 +219,14 @@ namespace OOX ...@@ -219,11 +219,14 @@ namespace OOX
OOX::Vml::CVmlCommonElements* common = dynamic_cast<OOX::Vml::CVmlCommonElements*>(pItem); OOX::Vml::CVmlCommonElements* common = dynamic_cast<OOX::Vml::CVmlCommonElements*>(pItem);
std::wstring sSpid; std::wstring sSpid;
bool bComment = false;
if (common) if (common)
{ {
if (common->m_sSpId.IsInit()) sSpid = *common->m_sSpId; if (common->m_sSpId.IsInit()) sSpid = *common->m_sSpId;
else if (common->m_sId.IsInit())sSpid = *common->m_sId; else if (common->m_sId.IsInit())sSpid = *common->m_sId;
bComment = common->m_bComment;
} }
else else
{ {
...@@ -243,11 +246,13 @@ namespace OOX ...@@ -243,11 +246,13 @@ namespace OOX
element.nId = (int)m_arrItems.size()-1; element.nId = (int)m_arrItems.size()-1;
element.sXml = elementContent; element.sXml = elementContent;
element.pElement = pItem; element.pElement = pItem;
element.bUsed = bComment;
m_mapShapes.insert(std::make_pair(sSpid, element)); m_mapShapes.insert(std::make_pair(sSpid, element));
} }
elementContent.clear(); elementContent.clear();
bReadyElement = false; bReadyElement = false;
bComment = false;
} }
} }
} }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
QT -= core QT -= core
QT -= gui QT -= gui
VERSION = 2.0.3.446 VERSION = 2.0.3.447
DEFINES += INTVER=$$VERSION DEFINES += INTVER=$$VERSION
TARGET = x2t TARGET = x2t
......
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