From fd97cbec7c043d23576387dc2459c0b12fe33002 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 6 May 2009 13:17:33 +0000 Subject: [PATCH] 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study notify node searcher on mesh destruction --- src/SMESH/SMESH_Mesh.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index b1cdde266..5ddf9a515 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -110,6 +110,11 @@ SMESH_Mesh::~SMESH_Mesh() { INFOS("SMESH_Mesh::~SMESH_Mesh"); + // issue 0020340: EDF 1022 SMESH : Crash with FindNodeClosestTo in a second new study + // Notify event listeners at least that something happens + if ( SMESH_subMesh * sm = GetSubMeshContaining(1)) + sm->ComputeStateEngine( SMESH_subMesh::MESH_ENTITY_REMOVED ); + // delete groups std::map < int, SMESH_Group * >::iterator itg; for (itg = _mapGroup.begin(); itg != _mapGroup.end(); itg++) { -- 2.39.2