From: eap Date: Tue, 16 Oct 2012 11:19:06 +0000 (+0000) Subject: 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes X-Git-Tag: V6_6_0a1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7e1dee49ad860255de1cca2f7c241a3da046a3be;p=modules%2Fsmesh.git 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes Fix setEventListener() for a case of a listener found by name --- diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index a2a64ef95..4e77b3f81 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -2111,6 +2111,7 @@ void SMESH_subMesh::setEventListener(EventListener* listener, if ( l_d->first->IsDeletable() ) delete l_d->first; _eventListeners.erase( l_d ); + break; } _eventListeners.insert( make_pair( listener, data )); }