]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Instead of anonymous variables their dependencies should be returned (GetObjectParame...
authorasl <asl@opencascade.com>
Thu, 10 Dec 2009 13:40:45 +0000 (13:40 +0000)
committerasl <asl@opencascade.com>
Thu, 10 Dec 2009 13:40:45 +0000 (13:40 +0000)
src/Notebook/SALOME_Notebook.cxx

index 42074647c04e6bed6447259aa1a5511d9b9ae4dc..62eb36ebaed0ef68f57d2348025b08d916fa03f4 100644 (file)
@@ -1107,7 +1107,19 @@ SALOME::StringArray* SALOME_Notebook::GetObjectParameters( const char* theCompon
     {
       aComponent = GetComponent( *dit, aName );
       if( aComponent==PARAM_COMPONENT )
-        aDeps.push_back( aName );
+      {
+        SALOME_Parameter* aParam = GetParameterPtr( aName.c_str() );
+        if( aParam->IsAnonymous() )
+        {
+          const std::list<std::string>& aLst = myDependencies[*dit];
+          std::list<std::string>::const_iterator lit = aLst.begin(), llast = aLst.end();
+          for( ; lit!=llast; lit++ )
+            if( find( aDeps.begin(), aDeps.end(), *lit ) == aDeps.end() )
+              aDeps.push_back( *lit );
+        }
+        else if( find( aDeps.begin(), aDeps.end(), aName ) == aDeps.end() )
+          aDeps.push_back( aName );
+      }
     }
   }