]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
regression imps/H4
authoreap <eap@opencascade.com>
Thu, 22 Nov 2012 16:45:03 +0000 (16:45 +0000)
committereap <eap@opencascade.com>
Thu, 22 Nov 2012 16:45:03 +0000 (16:45 +0000)
  Fix DeleteEventListener(): erase self from SMESH_subMeshEventListener::myBusySM

+    if ( l_d->first && !l_d->first->IsDeletable() )
+      l_d->first->myBusySM.erase( this );

src/SMESH/SMESH_subMesh.cxx

index e9811cffff52e8a2227ef571f1e1364efe1da5ef..5fae7685a7366585561cef3adcfe92958d9b9de2 100644 (file)
@@ -2203,6 +2203,9 @@ void SMESH_subMesh::DeleteEventListener(EventListener* listener)
       delete l_d->second;
     }
     _eventListeners.erase( l_d );
+
+    if ( l_d->first && !l_d->first->IsDeletable() )
+      l_d->first->myBusySM.erase( this );
   }
 }