From: asl Date: Thu, 10 Dec 2009 13:40:45 +0000 (+0000) Subject: Instead of anonymous variables their dependencies should be returned (GetObjectParame... X-Git-Tag: PHASE_17_Part1_V3~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=086baf18f330fec76ba9da3b57c181a2016f0f3f;p=modules%2Fkernel.git Instead of anonymous variables their dependencies should be returned (GetObjectParameters()) --- diff --git a/src/Notebook/SALOME_Notebook.cxx b/src/Notebook/SALOME_Notebook.cxx index 42074647c..62eb36eba 100644 --- a/src/Notebook/SALOME_Notebook.cxx +++ b/src/Notebook/SALOME_Notebook.cxx @@ -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& aLst = myDependencies[*dit]; + std::list::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 ); + } } }