Salome HOME
Bug IPAL19097 NPAL16768 is not implemented for "Normal to a face"
[modules/geom.git] / src / MeasureGUI / MeasureGUI_NormaleDlg.cxx
index ad227c4b3c66180a29e213f3b3e4204d36edbf48..9c064e60bb5605b712fe75827272e3cb340a417c 100644 (file)
@@ -108,7 +108,8 @@ void MeasureGUI_NormaleDlg::Init()
   myPoint = GEOM::GEOM_Object::_nil();
 
   myEditCurrentArgument = GroupArgs->LineEdit1;
-  globalSelection( GEOM_FACE );
+  globalSelection( GEOM_FACE ); // to close previous local selection
+  localSelection( GEOM::GEOM_Object::_nil(), TopAbs_FACE );
 
   /* signals and slots connections */
   connect( buttonOk(),    SIGNAL( clicked() ), this, SLOT( ClickOnOk() ) );