diff --git a/src/BasicGUI/BasicGUI_CurveDlg.cxx b/src/BasicGUI/BasicGUI_CurveDlg.cxx index a28c91af5..49d8bf5cc 100644 --- a/src/BasicGUI/BasicGUI_CurveDlg.cxx +++ b/src/BasicGUI/BasicGUI_CurveDlg.cxx @@ -198,6 +198,8 @@ bool BasicGUI_CurveDlg::ClickOnApply() initName(); ConstructorsClicked( getConstructorId() ); + globalSelection(); // close local contexts, if any + localSelection(GEOM::GEOM_Object::_nil(), TopAbs_VERTEX); return true; } diff --git a/src/BasicGUI/BasicGUI_VectorDlg.cxx b/src/BasicGUI/BasicGUI_VectorDlg.cxx index e920eb6ce..f5bb3bb44 100644 --- a/src/BasicGUI/BasicGUI_VectorDlg.cxx +++ b/src/BasicGUI/BasicGUI_VectorDlg.cxx @@ -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 );