From d5f818a7abff826d27157afb77e037eb91d09b49 Mon Sep 17 00:00:00 2001 From: dmv Date: Mon, 19 May 2008 06:45:20 +0000 Subject: [PATCH] IPAL 19260 Objects in Construction box disappear if some boxed are opened --- src/BasicGUI/BasicGUI_ArcDlg.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 ); } -- 2.30.2