]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
IPAL 18096
authordmv <dmv@opencascade.com>
Tue, 5 Feb 2008 14:44:45 +0000 (14:44 +0000)
committerdmv <dmv@opencascade.com>
Tue, 5 Feb 2008 14:44:45 +0000 (14:44 +0000)
src/EntityGUI/EntityGUI_SubShapeDlg.cxx

index d4c0e9ae12176daf7f5f89c640af208c5365dc21..ae82cc4c159b3a61f7a8de98c9beb1a737384709 100644 (file)
@@ -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;