From: eap Date: Mon, 5 May 2008 06:11:24 +0000 (+0000) Subject: dump option setting only if value changes X-Git-Tag: V4_1_2rc3~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cc610633c232bf3f875ff9ea452caa1284aa8f6;p=plugins%2Fblsurfplugin.git dump option setting only if value changes --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx index 4d29bb3..b7d4931 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx @@ -411,8 +411,9 @@ void BLSURFPlugin_Hypothesis_i::SetOptionValue(const char* optionName, catch (SALOME_Exception& ex) { THROW_SALOME_CORBA_EXCEPTION( ex.what() ,SALOME::BAD_PARAM ); } - SMESH::TPythonDump() << _this() << ".SetOptionValue( '" - << optionName << "', '" << optionValue << "' )"; + if ( valueChanged ) + SMESH::TPythonDump() << _this() << ".SetOptionValue( '" + << optionName << "', '" << optionValue << "' )"; } //=============================================================================