From: imn Date: Fri, 14 Mar 2014 15:07:24 +0000 (+0400) Subject: 0022364: EDF SMESH: Create Mesh dialog box improvement: hide inapplicable algorithms... X-Git-Tag: V7_4_0a1~33 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=e061c0b256d86f0e89773c67cf2da1996035991e 0022364: EDF SMESH: Create Mesh dialog box improvement: hide inapplicable algorithms/hypotheses Small fix --- diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index 5a3702c64..05dd010c2 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -2689,9 +2689,8 @@ void SMESHGUI_MeshOp::setFilteredAlgoData( const int theTabIndex, const int theI setCurrentHyp( dim, Algo, -1 ); } - int aMaxShapeDim = ( myMaxShapeDim != aDim) ? aDim : myMaxShapeDim; if ( isNone || isReqDisBound ) { - for ( int i = SMESH::DIM_0D; i <= aMaxShapeDim; i++ ) { + for ( int i = SMESH::DIM_0D; i <= myMaxShapeDim; i++ ) { if ( aDim != i ) { myDlg->disableTab( i ); setCurrentHyp(i, Algo, -1); @@ -2733,7 +2732,7 @@ void SMESHGUI_MeshOp::setFilteredAlgoData( const int theTabIndex, const int theI isAvailable = false; if ( HypothesisData* algoDataIn = SMESH::GetHypothesisData( currentHypoSet->current() )) { - for (int i = SMESH::DIM_0D; i <= SMESH::DIM_3D; i++) + for (int i = SMESH::DIM_0D; i <= myMaxShapeDim; i++) { for (int j = 0; j < myAvailableHypData[i][Algo].count(); ++j) { HypothesisData* aCurAlgo = hypData( i, Algo, j );