Fix corruption a pattern after using Union Details tool.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-02-08 11:06:17 +02:00
parent a1774149f6
commit 5edc241426
2 changed files with 15 additions and 0 deletions

View File

@ -142,6 +142,19 @@ void VAbstractNode::GroupVisibility(quint32 object, bool visible)
Q_UNUSED(visible) Q_UNUSED(visible)
} }
//---------------------------------------------------------------------------------------------------------------------
void VAbstractNode::ToolCreation(const Source &typeCreation)
{
if (typeCreation == Source::FromGui || typeCreation == Source::FromTool)
{
AddToFile();
}
else
{
RefreshDataInFile();
}
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**
* @brief AddToModeling add tag to modeling tag current pattern peace. * @brief AddToModeling add tag to modeling tag current pattern peace.

View File

@ -67,6 +67,8 @@ public:
protected: protected:
ParentType parentType; ParentType parentType;
virtual void ToolCreation(const Source &typeCreation) Q_DECL_OVERRIDE;
protected: protected:
/** @brief idNodenode id. */ /** @brief idNodenode id. */
quint32 idNode; quint32 idNode;