diff --git a/Code/Visualization/otbVectorDataModel.cxx b/Code/Visualization/otbVectorDataModel.cxx index e1b019ae35e16c6ebb62a4829fd3b0cbbece8c7d..059f7230f85f96c48bf79c2ecdceb9b1d181fae3 100644 --- a/Code/Visualization/otbVectorDataModel.cxx +++ b/Code/Visualization/otbVectorDataModel.cxx @@ -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();