From ec6c2c54659fec9c73417666048a5512edd5f638 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 11 Jan 2008 07:33:43 +0000 Subject: [PATCH] IPAL 18509 --- src/GEOMBase/GEOMBase_Helper.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/GEOMBase/GEOMBase_Helper.cxx b/src/GEOMBase/GEOMBase_Helper.cxx index 95ff8f0ec..b6c920954 100755 --- a/src/GEOMBase/GEOMBase_Helper.cxx +++ b/src/GEOMBase/GEOMBase_Helper.cxx @@ -1063,7 +1063,7 @@ GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather( GEOM::GEOM_Object_ptr //================================================================ void GEOMBase_Helper::addSubshapesToStudy() { - //Impemented in Dialogs, called from Accept method + //Impemented in Dialogs, called from Accept method in Helper } //================================================================ @@ -1084,12 +1084,14 @@ void GEOMBase_Helper::addSubshapesToFather( QMap { if ( !anOp->_is_nil() ) { GEOM::GEOM_Object_var aFatherObj = anOp->GetMainShape( it.data() ); - GEOM::GEOM_Object_var aFindedObject = findObjectInFather(aFatherObj, it.key() ); + if ( !aFatherObj->_is_nil() ) { + GEOM::GEOM_Object_var aFindedObject = findObjectInFather(aFatherObj, it.key() ); - //Add Object to study if its not exist - if ( aFindedObject == GEOM::GEOM_Object::_nil() ) - GeometryGUI::GetGeomGen()->AddInStudy(GeometryGUI::ClientStudyToStudy(aDStudy), - it.data(), it.key(), aFatherObj ); + //Add Object to study if its not exist + if ( aFindedObject == GEOM::GEOM_Object::_nil() ) + GeometryGUI::GetGeomGen()->AddInStudy(GeometryGUI::ClientStudyToStudy(aDStudy), + it.data(), it.key(), aFatherObj ); + } } else { //cout << " anOperations is NULL! " << endl; -- 2.39.2