From: dmv Date: Tue, 5 Feb 2008 14:44:45 +0000 (+0000) Subject: IPAL 18096 X-Git-Tag: for_M2008_07022008~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6623d942cd8d35cd1fac0b98db3d630bec0d20f7;p=modules%2Fgeom.git IPAL 18096 --- diff --git a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx index d4c0e9ae1..ae82cc4c1 100644 --- a/src/EntityGUI/EntityGUI_SubShapeDlg.cxx +++ b/src/EntityGUI/EntityGUI_SubShapeDlg.cxx @@ -524,6 +524,13 @@ GEOM::GEOM_IOperations_ptr EntityGUI_SubShapeDlg::createOperation() bool EntityGUI_SubShapeDlg::isValid( QString& msg ) { bool isOk = false; + Handle(SALOME_InteractiveObject) IO = firstIObject(); + Standard_Boolean testResult; + myObject = GEOMBase::ConvertIOinGEOMObject( IO, testResult ); + if ( !testResult || myObject->_is_nil() ) { + updateButtonState(); + return isOk; + } if ( !myObject->_is_nil() ) { if ( isAllSubShapes() ) isOk = true;