Fix Valentina crash.

Valentina crashes if remove piece node parent.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-11-13 11:29:29 +02:00
parent 8e44628b57
commit 5fb0eb42fd

View File

@ -177,9 +177,16 @@ void VNodePoint::PointChoosed()
* @brief FullUpdateFromFile update tool data form file. * @brief FullUpdateFromFile update tool data form file.
*/ */
void VNodePoint::FullUpdateFromFile() void VNodePoint::FullUpdateFromFile()
{
try
{ {
RefreshPointGeometry(*VAbstractTool::data.GeometricObject<VPointF>(m_id)); RefreshPointGeometry(*VAbstractTool::data.GeometricObject<VPointF>(m_id));
} }
catch (const VExceptionBadId &)
{
// ignore
}
}
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
/** /**