]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Debug
authorouv <ouv@opencascade.com>
Tue, 8 Dec 2009 09:07:19 +0000 (09:07 +0000)
committerouv <ouv@opencascade.com>
Tue, 8 Dec 2009 09:07:19 +0000 (09:07 +0000)
src/Notebook/SALOME_Notebook.cxx

index 75863cad0d735eb4d7d188c6d3a3e9f084589a6e..dccd3e9aa73653e0dfcaa5bd9142ed72940a7992 100644 (file)
@@ -200,7 +200,11 @@ void SALOME_Notebook::SetToUpdate( SALOME::ParameterizedObject_ptr theObj )
   if( !CORBA::is_nil( aParam ) )
   {
     std::string anEntry = aParam->GetEntry();
-    SALOME_Parameter* aParamPtr = myParameters[anEntry];
+    std::map< std::string, SALOME_Parameter* >::const_iterator pit = myParameters.find( anEntry );
+    if( pit == myParameters.end() )
+      return;
+
+    SALOME_Parameter* aParamPtr = pit->second;
     std::string aKey = GetKey( anEntry );
     ClearDependencies( aKey, SALOME::All );
     AddDependencies( aParamPtr );