]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Field dimension by default is shape_type-1 (i.e. FACES for Solid, VERTICES for Edge...
authorvsr <vsr@opencascade.com>
Thu, 7 Nov 2013 16:10:58 +0000 (16:10 +0000)
committervsr <vsr@opencascade.com>
Thu, 7 Nov 2013 16:10:58 +0000 (16:10 +0000)
src/EntityGUI/EntityGUI_FieldDlg.cxx

index 805366427f6e4e403d3b8704f81ef5436692112d..1884a70fd0d721296dda7e7ecc585875015f673d 100644 (file)
@@ -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 );
 }