mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-22 21:45:36 +05:00
Debug
This commit is contained in:
parent
72d914068e
commit
c4128f77f3
@ -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 );
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user