This commit is contained in:
ouv 2009-12-10 09:51:07 +00:00
parent 72d914068e
commit c4128f77f3
2 changed files with 12 additions and 4 deletions

View File

@ -182,7 +182,14 @@ void SMESH_Hypothesis_i::SetParameters( SALOME::Notebook_ptr theNotebook, const
std::list<std::string> aParams;
int n = theParameters.length();
for( int i=0; i<n; i++ )
aParams.push_back( theParameters[i].in() );
{
std::string aParam = CORBA::string_dup( theParameters[i] );
aParams.push_back( aParam );
SALOME::Parameter_ptr aParamPtr = theNotebook->GetParameter( aParam.c_str() );
if( !CORBA::is_nil( aParamPtr ) )
theNotebook->AddDependency( _this(), aParamPtr );
}
myBaseImpl->SetParameters( aParams );
}

View File

@ -39,6 +39,7 @@
// SALOME GUI includes
#include <SalomeApp_Tools.h>
#include <SalomeApp_IntSpinBox.h>
#include <SalomeApp_Notebook.h>
#include <QtxComboBox.h>
// Qt includes
@ -379,9 +380,9 @@ bool StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo( const NbSegmentsHypothe
//the function will be checked with old conversion mode, so that it may occurs
//unexpected errors for user
/* ouv: temporarily disabled
h->SetParameters(aVariablesList.join(":").toLatin1().constData());
*/
// temporal workaround
StdMeshersGUI_NbSegmentsCreator* that = const_cast<StdMeshersGUI_NbSegmentsCreator*>( this );
that->getNotebook()->setParameters( h, aVariablesList );
}
catch(const SALOME::SALOME_Exception& ex)
{