Salome HOME
dump option setting only if value changes
authoreap <eap@opencascade.com>
Mon, 5 May 2008 06:11:24 +0000 (06:11 +0000)
committereap <eap@opencascade.com>
Mon, 5 May 2008 06:11:24 +0000 (06:11 +0000)
src/BLSURFPlugin/BLSURFPlugin_Hypothesis_i.cxx

index 4d29bb3d4e3cbfbf01e6628cb3681dd57d4a4f1b..b7d4931df5be1edac4ddfed9f73e701b120ff198 100644 (file)
@@ -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 << "' )";
 }
 
 //=============================================================================