From c4128f77f38ac3ecd9a82e2a765df571e60116d3 Mon Sep 17 00:00:00 2001 From: ouv Date: Thu, 10 Dec 2009 09:51:07 +0000 Subject: [PATCH] Debug --- src/SMESH_I/SMESH_Hypothesis_i.cxx | 9 ++++++++- src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx | 7 ++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/SMESH_I/SMESH_Hypothesis_i.cxx b/src/SMESH_I/SMESH_Hypothesis_i.cxx index dcba457ae..8133237db 100644 --- a/src/SMESH_I/SMESH_Hypothesis_i.cxx +++ b/src/SMESH_I/SMESH_Hypothesis_i.cxx @@ -182,7 +182,14 @@ void SMESH_Hypothesis_i::SetParameters( SALOME::Notebook_ptr theNotebook, const std::list aParams; int n = theParameters.length(); for( int i=0; iGetParameter( aParam.c_str() ); + if( !CORBA::is_nil( aParamPtr ) ) + theNotebook->AddDependency( _this(), aParamPtr ); + } myBaseImpl->SetParameters( aParams ); } diff --git a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx index 1d5125768..58441e078 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx @@ -39,6 +39,7 @@ // SALOME GUI includes #include #include +#include #include // 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( this ); + that->getNotebook()->setParameters( h, aVariablesList ); } catch(const SALOME::SALOME_Exception& ex) { -- 2.39.2