From 3b1db25f70e452cda163d5d6e04d20520d05cc0f Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 14 Jan 2009 09:23:51 +0000 Subject: [PATCH] 0019941: EDF 766 SMESH : Max length hypothesis provide initial parameters at hypothesis edition as well --- src/SMESHGUI/SMESHGUI_MeshOp.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index 6c29524ca..5143be469 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -1058,8 +1058,7 @@ void SMESHGUI_MeshOp::createHypothesis (const int theDim, // Create hypothesis if (aCreator) { - // When create or edit a submesh, try to initialize a new hypothesis - // with values used to mesh a subshape + // Get parameters appropriate to initialize a new hypothesis SMESH::SMESH_Hypothesis_var initParamHyp = getInitParamsHypothesis(theTypeName, aData->ServerLibName); myDlg->setEnabled( false ); @@ -1108,7 +1107,11 @@ void SMESHGUI_MeshOp::onEditHyp( const int theHypType, const int theIndex ) SMESHGUI_GenericHypothesisCreator* aCreator = SMESH::GetHypothesisCreator( aHyp->GetName() ); if ( aCreator ) { + // Get initial parameters + SMESH::SMESH_Hypothesis_var initParamHyp = + getInitParamsHypothesis( aHyp->GetName(), aHyp->GetLibName()); myDlg->setEnabled( false ); + aCreator->setInitParamsHypothesis( initParamHyp ); aCreator->edit( aHyp.in(), aHypItem.second, dlg() ); myDlg->setEnabled( true ); } -- 2.39.2