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

@ -178,7 +178,14 @@ void VNodePoint::PointChoosed()
*/
void VNodePoint::FullUpdateFromFile()
{
RefreshPointGeometry(*VAbstractTool::data.GeometricObject<VPointF>(m_id));
try
{
RefreshPointGeometry(*VAbstractTool::data.GeometricObject<VPointF>(m_id));
}
catch (const VExceptionBadId &)
{
// ignore
}
}
//---------------------------------------------------------------------------------------------------------------------