diff --git a/libsrc/meshing/boundarylayer.cpp b/libsrc/meshing/boundarylayer.cpp index 6cff3bb8..8a82d385 100644 --- a/libsrc/meshing/boundarylayer.cpp +++ b/libsrc/meshing/boundarylayer.cpp @@ -1090,20 +1090,20 @@ void BoundaryLayerTool ::AddSegments() if (mapto[seg[0]].Size() || mapto[seg[1]].Size()) { seg.epgeominfo[0].edgenr = -1; - seg.epgeominfo[0].edgenr = -1; + seg.epgeominfo[1].edgenr = -1; } for (auto& seg : segments) - if (is_edge_moved[seg.si]) + if (is_edge_moved[seg.edgenr]) { seg.epgeominfo[0].edgenr = -1; - seg.epgeominfo[0].edgenr = -1; + seg.epgeominfo[1].edgenr = -1; } for (auto& seg : new_segs) { seg.epgeominfo[0].edgenr = -1; - seg.epgeominfo[0].edgenr = -1; + seg.epgeominfo[1].edgenr = -1; } }