From 9cc610633c232bf3f875ff9ea452caa1284aa8f6 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 5 May 2008 06:11:24 +0000 Subject: [PATCH] dump option setting only if value changes --- src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 << "' )"; } //============================================================================= -- 2.39.2