Skip to content
Snippets Groups Projects
Commit cd57d75a authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

BUG: corrected the crash after attempting to add a second point

parent 2424e8c6
Branches
Tags
No related merge requests found
......@@ -57,6 +57,7 @@ void VectorDataModel::AddPointToGeometry(VertexType& vertex, bool callUpdate)
if (m_CurrentNodeType == FEATURE_POINT)
{
otbMsgDevMacro(<< "VectorDataModel::AddPointToGeometry: Creating and adding new point");
m_CurrentGeometry = NULL;
if (m_CurrentGeometry.IsNull())
{
m_CurrentGeometry = DataNodeType::New();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment