]> SALOME platform Git repositories - plugins/netgenplugin.git/commitdiff
Salome HOME
2889: Wrong default name for the created "NETGEN 2D Parameters" hypothesis
authoreap <eap@opencascade.com>
Wed, 7 Oct 2015 14:48:35 +0000 (17:48 +0300)
committereap <eap@opencascade.com>
Wed, 7 Oct 2015 14:48:35 +0000 (17:48 +0300)
src/GUI/NETGENPluginGUI_HypothesisCreator.cxx

index eacc99938839320c750572d3cbffb0d2c8941fde..d09a15a1b0b7d4eebcb42adc314f10c4e887cd42 100644 (file)
@@ -389,8 +389,8 @@ bool NETGENPluginGUI_HypothesisCreator::readParamsFromHypo( NetgenHypothesisData
   NETGENPlugin::NETGENPlugin_Hypothesis_var h =
     NETGENPlugin::NETGENPlugin_Hypothesis::_narrow( initParamsHypothesis() );
 
-  HypothesisData* data = SMESH::GetHypothesisData( hypType() );
-  h_data.myName = isCreation() && data ? data->Label : "";
+  //HypothesisData* data = SMESH::GetHypothesisData( hypType() );
+  h_data.myName = isCreation() ? hypName() : "";
 
   h_data.myMaxSize = h->GetMaxSize();
   h_data.myMaxSizeVar = getVariableName("SetMaxSize");