From 20a36eb1fc17714a36f898cd4c2d75506fb679eb Mon Sep 17 00:00:00 2001 From: dmv Date: Mon, 14 Jan 2008 10:26:22 +0000 Subject: [PATCH] IPAL 18536, 18538 --- src/BasicGUI/BasicGUI_CurveDlg.cxx | 5 ++++- src/BasicGUI/BasicGUI_VectorDlg.cxx | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) 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 ); -- 2.39.2