]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Debug
authorouv <ouv@opencascade.com>
Thu, 10 Dec 2009 09:51:07 +0000 (09:51 +0000)
committerouv <ouv@opencascade.com>
Thu, 10 Dec 2009 09:51:07 +0000 (09:51 +0000)
src/SMESH_I/SMESH_Hypothesis_i.cxx
src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx

index dcba457ae964b785b0ad4baae63989e5462c9c52..8133237dbc99510cf1f4d3b24fca13fc1a1ecd9b 100644 (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 );
 }
 
index 1d51257686912f8d557196c164f3148b4d8b7809..58441e0781d7ab64e4947ffbe95ab1a7642101a1 100644 (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)
   {