From: mpa Date: Fri, 31 Oct 2014 13:59:11 +0000 (+0300) Subject: 0022379: EDF 2276 GEOM: Dependency Tree - reverse the direction of the arrows X-Git-Tag: V7_5_0b1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=76bdbaedf7a504e73582d9428187984813f191eb;p=modules%2Fgeom.git 0022379: EDF 2276 GEOM: Dependency Tree - reverse the direction of the arrows --- diff --git a/src/DependencyTree/DependencyTree_View.cxx b/src/DependencyTree/DependencyTree_View.cxx index 230bfa53a..b1afd4085 100644 --- a/src/DependencyTree/DependencyTree_View.cxx +++ b/src/DependencyTree/DependencyTree_View.cxx @@ -477,7 +477,7 @@ void DependencyTree_View::parseTree() GEOMUtils::LevelInfo::const_iterator node; for( node = Levelup.begin(); node != Levelup.end(); node++ ) { DependencyTree_Object* object = myTreeMap[ node->first ]; - addArrow( Main_object, object ); + addArrow( object, Main_object ); } } parseTreeWardArrow( i->second.first ); @@ -515,7 +515,7 @@ void DependencyTree_View::parseTreeWardArrow( const GEOMUtils::LevelsList& theWa for( int link = 0; link < Links.size(); link++ ) { DependencyTree_Object* LinkObject = myTreeMap[ Links[ link ] ]; if( object && LinkObject ) - addArrow( object, LinkObject ); + addArrow( LinkObject, object ); } } } @@ -613,7 +613,7 @@ void DependencyTree_View::drawTree() for( node = Levelup.begin(); node != Levelup.end(); node++ ) { DependencyTree_Object* object = myTreeMap[ node->first ]; DependencyTree_Arrow* arrow = - myArrows[ std::pair( Main_object, object )]; + myArrows[ std::pair( object, Main_object )]; if( arrow && !isItemAdded( arrow ) ) addItem( arrow ); } @@ -670,7 +670,7 @@ void DependencyTree_View::drawWardArrows( const GEOMUtils::LevelsList& theWard ) for( int link = 0; link < Links.size(); link++ ) { DependencyTree_Object* LinkObject = myTreeMap[ Links[ link ] ]; if( isItemAdded( object ) && isItemAdded( LinkObject ) ) { - DependencyTree_Arrow* arrow = myArrows[ std::pair( object, LinkObject ) ]; + DependencyTree_Arrow* arrow = myArrows[ std::pair( LinkObject, object ) ]; if( arrow && !isItemAdded( arrow ) ) addItem( arrow ); }