This commit is contained in:
dmv 2008-01-11 07:38:45 +00:00
parent c150946a99
commit afbca35bdd

View File

@ -1088,6 +1088,7 @@ void GEOMBase_Helper::addSubshapesToFather( QMap<QString, GEOM::GEOM_Object_var>
{ {
if ( !anOp->_is_nil() ) { if ( !anOp->_is_nil() ) {
GEOM::GEOM_Object_var aFatherObj = anOp->GetMainShape( it.data() ); GEOM::GEOM_Object_var aFatherObj = anOp->GetMainShape( it.data() );
if ( !aFatherObj->_is_nil() ) {
GEOM::GEOM_Object_var aFindedObject = findObjectInFather(aFatherObj, it.key() ); GEOM::GEOM_Object_var aFindedObject = findObjectInFather(aFatherObj, it.key() );
//Add Object to study if its not exist //Add Object to study if its not exist
@ -1095,6 +1096,7 @@ void GEOMBase_Helper::addSubshapesToFather( QMap<QString, GEOM::GEOM_Object_var>
GeometryGUI::GetGeomGen()->AddInStudy(GeometryGUI::ClientStudyToStudy(aDStudy), GeometryGUI::GetGeomGen()->AddInStudy(GeometryGUI::ClientStudyToStudy(aDStudy),
it.data(), it.key(), aFatherObj ); it.data(), it.key(), aFatherObj );
} }
}
else { else {
//cout << " anOperations is NULL! " << endl; //cout << " anOperations is NULL! " << endl;
} }