From 7e1dee49ad860255de1cca2f7c241a3da046a3be Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 16 Oct 2012 11:19:06 +0000 Subject: [PATCH] 0021543: EDF 1978 SMESH: Viscous layer for 2D meshes Fix setEventListener() for a case of a listener found by name --- src/SMESH/SMESH_subMesh.cxx | 1 + 1 file changed, 1 insertion(+) 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 )); } -- 2.39.2