From 775b31fe49af170a781a7a899274e052cc42a196 Mon Sep 17 00:00:00 2001 From: dmv Date: Mon, 25 Feb 2008 14:12:16 +0000 Subject: [PATCH] IPAL 18096 --- src/BooleanGUI/BooleanGUI_Dialog.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/BooleanGUI/BooleanGUI_Dialog.cxx b/src/BooleanGUI/BooleanGUI_Dialog.cxx index 071d9275a..39826043a 100644 --- a/src/BooleanGUI/BooleanGUI_Dialog.cxx +++ b/src/BooleanGUI/BooleanGUI_Dialog.cxx @@ -283,6 +283,12 @@ GEOM::GEOM_IOperations_ptr BooleanGUI_Dialog::createOperation() //================================================================================= bool BooleanGUI_Dialog::isValid( QString& msg ) { + Handle(SALOME_InteractiveObject) IO = firstIObject(); + Standard_Boolean testResult; + GEOM::GEOM_Object_var anObject = GEOMBase::ConvertIOinGEOMObject( IO, testResult ); + if ( !testResult || anObject->_is_nil() ) + return false; + return !CORBA::is_nil( myObject1 ) && !CORBA::is_nil( myObject2 ); } -- 2.39.2