]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL 19260 Objects in Construction box disappear if some boxed are opened
authordmv <dmv@opencascade.com>
Mon, 19 May 2008 06:45:20 +0000 (06:45 +0000)
committerdmv <dmv@opencascade.com>
Mon, 19 May 2008 06:45:20 +0000 (06:45 +0000)
src/BasicGUI/BasicGUI_ArcDlg.cxx

index f9668b5cebc93cdcfa303d64f1d89c5a6a442ec3..68686d8008a235ac33f17c30993ff0a26ee3e3b7 100644 (file)
@@ -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 );
 }