From: dmv Date: Mon, 19 May 2008 06:45:20 +0000 (+0000) Subject: IPAL 19260 Objects in Construction box disappear if some boxed are opened X-Git-Tag: V4_1_3rc1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d5f818a7abff826d27157afb77e037eb91d09b49;p=modules%2Fgeom.git IPAL 19260 Objects in Construction box disappear if some boxed are opened --- diff --git a/src/BasicGUI/BasicGUI_ArcDlg.cxx b/src/BasicGUI/BasicGUI_ArcDlg.cxx index f9668b5ce..68686d800 100644 --- a/src/BasicGUI/BasicGUI_ArcDlg.cxx +++ b/src/BasicGUI/BasicGUI_ArcDlg.cxx @@ -440,6 +440,24 @@ static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Obje //================================================================================= bool BasicGUI_ArcDlg::isValid( QString& msg ) { + switch (getConstructorId()) { + case 0: + { + if (Group3Pnts->LineEdit1->text() == "" || + Group3Pnts->LineEdit2->text() == "" || + Group3Pnts->LineEdit3->text() == "") + return false; + break; + } + case 1: + { + if (Group3Pnts2->LineEdit1->text() == "" || + Group3Pnts2->LineEdit2->text() == "" || + Group3Pnts2->LineEdit3->text() == "") + return false; + break; + } + } return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() && !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 ); }