From: eap Date: Mon, 25 May 2009 11:24:54 +0000 (+0000) Subject: 0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account X-Git-Tag: V5_1_2rc1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=b5cb4a64fb466ebb147b31fbbcb9492323c1505a;ds=sidebyside 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() ) {