From: dmv Date: Mon, 14 Jan 2008 10:26:22 +0000 (+0000) Subject: IPAL 18536, 18538 X-Git-Tag: V3_2_10~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=20a36eb1fc17714a36f898cd4c2d75506fb679eb;p=modules%2Fgeom.git IPAL 18536, 18538 --- diff --git a/src/BasicGUI/BasicGUI_CurveDlg.cxx b/src/BasicGUI/BasicGUI_CurveDlg.cxx index 805a6274b..f6114c376 100644 --- a/src/BasicGUI/BasicGUI_CurveDlg.cxx +++ b/src/BasicGUI/BasicGUI_CurveDlg.cxx @@ -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; } diff --git a/src/BasicGUI/BasicGUI_VectorDlg.cxx b/src/BasicGUI/BasicGUI_VectorDlg.cxx index 46d0a0033..062a339c6 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 );