From: dmv Date: Fri, 11 Jan 2008 07:38:45 +0000 (+0000) Subject: 18509 X-Git-Tag: for_M2008_07022008~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=afbca35bdd3239a05b0dde734295abc767628e55;p=modules%2Fgeom.git 18509 --- diff --git a/src/GEOMBase/GEOMBase_Helper.cxx b/src/GEOMBase/GEOMBase_Helper.cxx index 114ff2f53..d62fc63cd 100755 --- a/src/GEOMBase/GEOMBase_Helper.cxx +++ b/src/GEOMBase/GEOMBase_Helper.cxx @@ -1088,12 +1088,14 @@ void GEOMBase_Helper::addSubshapesToFather( QMap { if ( !anOp->_is_nil() ) { GEOM::GEOM_Object_var aFatherObj = anOp->GetMainShape( it.data() ); + 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 ); + } } else { //cout << " anOperations is NULL! " << endl;