From: eap Date: Wed, 7 Oct 2015 14:48:35 +0000 (+0300) Subject: 2889: Wrong default name for the created "NETGEN 2D Parameters" hypothesis X-Git-Tag: V7_7_0_WIN~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=94e1d3f340c5fdf9067c9ba5650c32af0e57d472;p=plugins%2Fnetgenplugin.git 2889: Wrong default name for the created "NETGEN 2D Parameters" hypothesis --- diff --git a/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx b/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx index eacc999..d09a15a 100644 --- a/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/NETGENPluginGUI_HypothesisCreator.cxx @@ -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");