From afbca35bdd3239a05b0dde734295abc767628e55 Mon Sep 17 00:00:00 2001 From: dmv Date: Fri, 11 Jan 2008 07:38:45 +0000 Subject: [PATCH] 18509 --- src/GEOMBase/GEOMBase_Helper.cxx | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.2