From 086baf18f330fec76ba9da3b57c181a2016f0f3f Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 10 Dec 2009 13:40:45 +0000 Subject: [PATCH] Instead of anonymous variables their dependencies should be returned (GetObjectParameters()) --- src/Notebook/SALOME_Notebook.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 ); + } } } -- 2.39.2