From 6623d942cd8d35cd1fac0b98db3d630bec0d20f7 Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 5 Feb 2008 14:44:45 +0000 Subject: [PATCH] IPAL 18096 --- src/EntityGUI/EntityGUI_SubShapeDlg.cxx | 7 +++++++ 1 file changed, 7 insertions(+) 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;