]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL 18536, 18538
authordmv <dmv@opencascade.com>
Mon, 14 Jan 2008 10:26:22 +0000 (10:26 +0000)
committerdmv <dmv@opencascade.com>
Mon, 14 Jan 2008 10:26:22 +0000 (10:26 +0000)
src/BasicGUI/BasicGUI_CurveDlg.cxx
src/BasicGUI/BasicGUI_VectorDlg.cxx

index 805a6274b6b0e43dfe9486cddc5ec8372c80c6eb..f6114c376141f05c93a0052f118ecc378c217d09 100644 (file)
@@ -144,7 +144,7 @@ void BasicGUI_CurveDlg::ConstructorsClicked( int id )
   QString aTitle = tr( id == 0 ? "GEOM_POLYLINE" : id == 1 ? "GEOM_BEZIER" : "GEOM_INTERPOL" );
   GroupConstructors->setTitle( aTitle );
        
-       myPoints = new GEOM::ListOfGO();
+  myPoints = new GEOM::ListOfGO();
   myPoints->length( 0 );  
 
   myEditCurrentArgument->setText("");
@@ -198,6 +198,9 @@ bool BasicGUI_CurveDlg::ClickOnApply()
 
   initName();
   ConstructorsClicked( getConstructorId() );
+  globalSelection(); // close local contexts, if any
+  localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX);
+
   return true;
 }
 
index 46d0a0033a36a18e4d3816ac8cc45f21930113e6..062a339c66cd71a20eb85bacec7f809a6b804357 100644 (file)
@@ -203,6 +203,7 @@ void BasicGUI_VectorDlg::ConstructorsClicked( int constructorId )
       GroupPoints->hide();
       resize( 0, 0 );
       GroupDimensions->show();
+      globalSelection(); // close local contexts, if any
 
       double dx( 0. ), dy( 0. ), dz( 0. ); 
       GroupDimensions->SpinBox_DX->SetValue( dx );