]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0020145: EDF 666 SMESH: Modifications of GEOM groups are not taken into account
authoreap <eap@opencascade.com>
Mon, 25 May 2009 11:25:13 +0000 (11:25 +0000)
committereap <eap@opencascade.com>
Mon, 25 May 2009 11:25:13 +0000 (11:25 +0000)
   In ShapeToMesh(), delete submeshes

src/SMESHDS/SMESHDS_Mesh.cxx

index 25c772b2141a6c04f4ae37e223979383b0a9e377..63ebf3dba5a1aac970cecc58e6a2e04f5fc1f631 100644 (file)
@@ -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<SMESHDS_GroupBase*>::iterator gr = myGroups.begin();
     while ( gr != myGroups.end() ) {