From 36bfc7ca0ca803fdeac7ddcc4dce98c562d18a23 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 6 May 2009 13:21:34 +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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index b751f3ae8..00defb418 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -23,7 +23,6 @@ // File : SMESH_Mesh.cxx // Author : Paul RASCLE, EDF // Module : SMESH -// $Header$ // #include "SMESH_Mesh.hxx" #include "SMESH_subMesh.hxx" @@ -110,6 +109,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