mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Fix map invalidation reported by valgrind
This commit is contained in:
@@ -831,6 +831,10 @@ bool CgalKernel::process_extrusion(const cgal_face_t& bottom_face, const taxonom
|
||||
}
|
||||
auto p = external_edges.insert({ { i0, i1 }, { i, j} });
|
||||
if (!p.second) {
|
||||
// Mark as internal before erasure in external
|
||||
// This is {i,j} at the time the edge use was inserted.
|
||||
internal_edges.insert(p.first->second);
|
||||
|
||||
// not inserted, remove
|
||||
external_edges.erase(p.first);
|
||||
|
||||
@@ -838,8 +842,6 @@ bool CgalKernel::process_extrusion(const cgal_face_t& bottom_face, const taxonom
|
||||
// point_map. i is index in faces_to_extrude, j is segment index in wire.
|
||||
internal_edges.insert({ i, j });
|
||||
|
||||
// This is {i,j} at the time the edge use was inserted.
|
||||
internal_edges.insert(p.first->second);
|
||||
}
|
||||
}
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user