]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021543: EDF 1978 SMESH: Viscous layer for 2D meshes
authoreap <eap@opencascade.com>
Tue, 16 Oct 2012 11:19:06 +0000 (11:19 +0000)
committereap <eap@opencascade.com>
Tue, 16 Oct 2012 11:19:06 +0000 (11:19 +0000)
  Fix setEventListener() for a case of a listener found by name

src/SMESH/SMESH_subMesh.cxx

index a2a64ef9597f5d6f2b6c36ebd535cbc7cb787a85..4e77b3f81afa43e5a8f64d9deee7f0f31bcb1ef2 100644 (file)
@@ -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 ));
   }