Commit 94fbba99 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

Revert.

parent 4323faa2
......@@ -1052,12 +1052,9 @@ void RemoveEdgeToUnstableNode(typename TSegmenter::NodePointerType nodePtr)
for(auto& edg : nodePtr->m_Edges)
{
auto nodeNeighbor = edg.GetRegion();
//RAFGAET : Naive debug, do not process if NULL pointer
if (nodeNeighbor) { //added
auto EdgeToNode = grm::GraphOperations<TSegmenter>::FindEdge(nodeNeighbor, nodePtr);
assert(EdgeToNode != nodeNeighbor->m_Edges.end());
nodeNeighbor->m_Edges.erase(EdgeToNode);
} //added
auto EdgeToNode = grm::GraphOperations<TSegmenter>::FindEdge(nodeNeighbor, nodePtr);
assert(EdgeToNode != nodeNeighbor->m_Edges.end());
nodeNeighbor->m_Edges.erase(EdgeToNode);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment