From: eap Date: Mon, 25 May 2009 11:25:13 +0000 (+0000) Subject: 0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account X-Git-Tag: V4_1_0_maintainance_FINAL~68 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25908b34640d8653e37aed03fc8ad829fdccc599;p=modules%2Fsmesh.git 0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account In ShapeToMesh(), delete submeshes --- diff --git a/src/SMESHDS/SMESHDS_Mesh.cxx b/src/SMESHDS/SMESHDS_Mesh.cxx index 25c772b21..63ebf3dba 100644 --- a/src/SMESHDS/SMESHDS_Mesh.cxx +++ b/src/SMESHDS/SMESHDS_Mesh.cxx @@ -87,8 +87,11 @@ void SMESHDS_Mesh::ShapeToMesh(const TopoDS_Shape & S) } } // - sub-meshes - myIndexToShape.Clear(); + TShapeIndexToSubMesh::iterator i_sm = myShapeIndexToSubMesh.begin(); + for ( ; i_sm != myShapeIndexToSubMesh.end(); ++i_sm ) + delete i_sm->second; myShapeIndexToSubMesh.clear(); + myIndexToShape.Clear(); // - groups on geometry set::iterator gr = myGroups.begin(); while ( gr != myGroups.end() ) {