From: vsr Date: Thu, 7 Nov 2013 16:10:58 +0000 (+0000) Subject: Field dimension by default is shape_type-1 (i.e. FACES for Solid, VERTICES for Edge... X-Git-Tag: BR_hydro_v_0_3_1~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35ad5f071216b8abcea0a514c3a47d40bdeee311;p=modules%2Fgeom.git Field dimension by default is shape_type-1 (i.e. FACES for Solid, VERTICES for Edge etc) --- diff --git a/src/EntityGUI/EntityGUI_FieldDlg.cxx b/src/EntityGUI/EntityGUI_FieldDlg.cxx index 805366427..1884a70fd 100644 --- a/src/EntityGUI/EntityGUI_FieldDlg.cxx +++ b/src/EntityGUI/EntityGUI_FieldDlg.cxx @@ -1177,8 +1177,8 @@ void EntityGUI_FieldDlg::SelectionIntoArgument() myEditCurrentArgument = 0; // re-fill myDimCombo - const int curDim = getDim(); - updateDims( curDim ); + //const int curDim = getDim(); + updateDims( -1 ); // update table onDimChange(); @@ -1584,7 +1584,7 @@ void EntityGUI_FieldDlg::updateDims(int curDim) } myDimCombo->insertItem( 4, tr("WHOLE"), -1 ); if ( getDim() != curDim ) - myDimCombo->setCurrentIndex( myDimCombo->count()-1 ); + myDimCombo->setCurrentIndex( myDimCombo->count()-1-(myDimCombo->count()>1?1:0) ); } myDimCombo->blockSignals( false ); }