From: dmv Date: Fri, 11 Jan 2008 07:33:43 +0000 (+0000) Subject: IPAL 18509 X-Git-Tag: V3_2_10~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ec6c2c54659fec9c73417666048a5512edd5f638;p=modules%2Fgeom.git IPAL 18509 --- 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;