From: eap Date: Tue, 22 Apr 2008 09:46:35 +0000 (+0000) Subject: avoid duplication of DumpPython commands X-Git-Tag: V4_1_2rc2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=88e849daf7bf3045b952a9c7253d3c2abfd44dd0;p=plugins%2Fghs3dplugin.git avoid duplication of DumpPython commands --- diff --git a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx index 5e84952..4212f79 100644 --- a/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/GHS3DPluginGUI_HypothesisCreator.cxx @@ -269,13 +269,20 @@ bool GHS3DPluginGUI_HypothesisCreator::storeParamsToHypo( const GHS3DHypothesisD if( isCreation() ) SMESH::SetName( SMESH::FindSObject( h ), h_data.myName.latin1() ); - h->SetToMeshHoles ( h_data.myToMeshHoles ); - h->SetMaximumMemory ( h_data.myMaximumMemory ); - h->SetInitialMemory ( h_data.myInitialMemory ); - h->SetInitialMemory ( h_data.myInitialMemory ); - h->SetOptimizationLevel( h_data.myOptimizationLevel ); - h->SetKeepFiles ( h_data.myKeepFiles ); - h->SetWorkingDirectory ( h_data.myWorkingDir ); + if ( h->GetToMeshHoles() != h_data.myToMeshHoles ) // avoid duplication of DumpPython commands + h->SetToMeshHoles ( h_data.myToMeshHoles ); + if ( h->GetMaximumMemory() != h_data.myMaximumMemory ) + h->SetMaximumMemory ( h_data.myMaximumMemory ); + if ( h->GetInitialMemory() != h_data.myInitialMemory ) + h->SetInitialMemory ( h_data.myInitialMemory ); + if ( h->GetInitialMemory() != h_data.myInitialMemory ) + h->SetInitialMemory ( h_data.myInitialMemory ); + if ( h->GetOptimizationLevel() != h_data.myOptimizationLevel ) + h->SetOptimizationLevel( h_data.myOptimizationLevel ); + if ( h->GetKeepFiles() != h_data.myKeepFiles ) + h->SetKeepFiles ( h_data.myKeepFiles ); + if (h->GetWorkingDirectory() != h_data.myWorkingDir ) + h->SetWorkingDirectory ( h_data.myWorkingDir ); } catch(const SALOME::SALOME_Exception& ex) {