Commit 74283d4a authored by Anthony Royer's avatar Anthony Royer

Iterator 'it' used after element has been erased

parent ac4decc2
Pipeline #2726 passed with stage
in 17 minutes and 36 seconds
......@@ -110,9 +110,9 @@ bool SortEdgeConsecutive(const std::vector<MEdge> &e,
v.push_back(current);
std::map<MVertex *, std::pair<MVertex *, MVertex *> >::iterator it =
c.find(current);
c.erase(it);
MVertex *v1 = it->second.first;
MVertex *v2 = it->second.second;
c.erase(it);
MVertex *temp = current;
if(v1 == prev)
current = v2;
......
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