IPAL 19260 Objects in Construction box disappear if some boxed are opened

This commit is contained in:
dmv 2008-05-19 06:45:20 +00:00
parent 7ecfc7f458
commit d5f818a7ab

View 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 );
}