X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_subMesh.cxx;h=6545ef40ceb6c2fc04b31c00609d4f325955103a;hb=299e2326cd42edd35b87946a5a801899f821d875;hp=a7b015260631705e396ff8193615a2d1dd96fa5f;hpb=6bac08c1a81f34d3f21c550bd92f83654b2546a5;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index a7b015260..6545ef40c 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -2469,7 +2469,9 @@ void SMESH_subMesh::deleteOwnListeners() { if ( !_father->MeshExists( d->myMeshID )) continue; - if ( _father->GetId() == d->myMeshID && !_father->GetSubMeshContaining( d->mySubMeshID )) + if ( _father->GetId() == d->myMeshID && + this->GetId() != d->mySubMeshID && + !_father->GetSubMeshContaining( d->mySubMeshID )) continue; d->mySubMesh->DeleteEventListener( d->myListener ); }