X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshersGUI%2FStdMeshersGUI_NbSegmentsCreator.cxx;fp=src%2FStdMeshersGUI%2FStdMeshersGUI_NbSegmentsCreator.cxx;h=f55424795574b5c4966939bba2815a648f5a2708;hb=e5ed5aa5ac8420179aa37e3bf3a175e22ef3f69a;hp=805cdae27c527bc6337655584bd667a5ded60c66;hpb=8bd7e4737d4999c204dba61f1c065a4611f50cce;p=modules%2Fsmesh.git diff --git a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx index 805cdae27..f55424795 100644 --- a/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx +++ b/src/StdMeshersGUI/StdMeshersGUI_NbSegmentsCreator.cxx @@ -91,8 +91,8 @@ bool StdMeshersGUI_NbSegmentsCreator::checkParams( QString& msg, QStringList& ab bool res = true; res = myNbSeg->isValid( msg, absentParams, true ) && res; res = myScale->isValid( msg, absentParams, true ) && res; - res = res && storeParamsToHypo( data_new ); - res = res && storeParamsToHypo( data_old ); + res = res && storeParamsToHypo( data_new, true ); + storeParamsToHypo( data_old, true ); return res; } @@ -342,7 +342,7 @@ bool StdMeshersGUI_NbSegmentsCreator::readParamsFromHypo( NbSegmentsHypothesisDa return true; } -bool StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo( const NbSegmentsHypothesisData& h_data ) const +bool StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo( const NbSegmentsHypothesisData& h_data, bool isOnlyCheck ) const { StdMeshers::StdMeshers_NumberOfSegments_var h = StdMeshers::StdMeshers_NumberOfSegments::_narrow( hypothesis() ); @@ -381,9 +381,8 @@ bool StdMeshersGUI_NbSegmentsCreator::storeParamsToHypo( const NbSegmentsHypothe //the function will be checked with old conversion mode, so that it may occurs //unexpected errors for user - // temporal workaround - StdMeshersGUI_NbSegmentsCreator* that = const_cast( this ); - that->getNotebook()->setParameters( h, aVariablesList ); + if( !isOnlyCheck ) + getNotebook()->setParameters( h, aVariablesList ); } catch(const SALOME::SALOME_Exception& ex) {