From: akl Date: Fri, 6 Jun 2014 08:42:57 +0000 (+0400) Subject: Fix case of only one link - self-depending link. X-Git-Tag: V7_5_0a1~50^2~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9d9a82504916b449047e78f2e47b69ee7eee282d;p=modules%2Fgeom.git Fix case of only one link - self-depending link. --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index eeda4adad..b052e5d24 100755 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -3122,9 +3122,7 @@ void GEOM_Gen_i::getUpwardDependency( GEOM::GEOM_BaseObject_ptr gbo, anEntries.push_back( aDepEntry ); } // get dependencies recursively - if ( !depList[j]->_is_equivalent( gbo ) /*avoid self-recursion*/ ) { - getUpwardDependency(depList[j], upLevelList, passedEntries, level+1); - } + getUpwardDependency(depList[j], upLevelList, passedEntries, level+1); } if ( level > 0 ) { aLevelMap.insert( std::pair(aGboEntry, anEntries) ); @@ -3190,11 +3188,9 @@ void GEOM_Gen_i::getDownwardDependency( GEOM::GEOM_BaseObject_ptr gbo, } aLevelMap.insert( std::pair(aGoEntry, anEntries) ); downLevelList[level] = aLevelMap; - // get dependencies of the current object recursively - if ( !depList[i]->_is_equivalent( geomObj ) ) { // avoid self-recursion - getDownwardDependency(geomObj, downLevelList, passedEntries, level+1); - } - break; + // get dependencies of the current object recursively + getDownwardDependency(geomObj, downLevelList, passedEntries, level+1); + break; } } }