]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
18509
authordmv <dmv@opencascade.com>
Fri, 11 Jan 2008 07:38:45 +0000 (07:38 +0000)
committerdmv <dmv@opencascade.com>
Fri, 11 Jan 2008 07:38:45 +0000 (07:38 +0000)
src/GEOMBase/GEOMBase_Helper.cxx

index 114ff2f538a94779d8761d58267e9d52a2812280..d62fc63cdc82445a8ecc9ff5f45a44a3965d8b58 100755 (executable)
@@ -1088,12 +1088,14 @@ void GEOMBase_Helper::addSubshapesToFather( QMap<QString, GEOM::GEOM_Object_var>
     {
       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;