]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
NPAL14793. In the TUI Export of a graph with switchNode without link
authorrahuel <rahuel@opencascade.com>
Tue, 6 Feb 2007 09:04:42 +0000 (09:04 +0000)
committerrahuel <rahuel@opencascade.com>
Tue, 6 Feb 2007 09:04:42 +0000 (09:04 +0000)
between Default ports give a graph with link between Default ports.

src/Supervision/GNode_Impl.cxx
src/Supervision/Graph_Impl.cxx

index 89228a591aaa5939d988116f4919393faff38612..bc12026c729cf8bef3bbfbe3d22237167579eb41 100644 (file)
@@ -247,7 +247,8 @@ bool GNode_Impl::SetCoupled( const char * anInLineNode )
        ( !IsGOTO() && ( IsLoop() || IsSwitch() || IsEndLoop() || IsEndSwitch() ) ) ) {
     DataFlowNode()->CoupledNode( CoupledINode ) ;
     if ( CoupledINode && IsSwitch() ) {
-      DataFlowEditor()->AddLink( Name() , "Default" ,CoupledINode->Name() , "Default" ) ;
+//JR NPAL14793 05.02.2007 : do not add that link
+//      DataFlowEditor()->AddLink( Name() , "Default" ,CoupledINode->Name() , "Default" ) ;
     }
     else if ( CoupledINode && ( IsLoop() || IsEndLoop() ) ) {
       DataFlowEditor()->AddLink( Name() , "DoLoop" , CoupledINode->Name() , "DoLoop" ) ;
index ceaf39c67e34f7ede6f8be8f26635aa2a5918c17..302e7c07e79c184384573a397b40779577e31780 100644 (file)
@@ -589,10 +589,11 @@ SUPERV::SNode_ptr Graph_Impl::SNode( const char * FuncName ,
       myEndNode->SetObjRef( SUPERV::ESNode::_duplicate( iendobject ) ) ;
       myNode->SetCoupled( myEndNode->BaseNode()->Name() ) ;
       myEndNode->SetCoupled( myNode->BaseNode()->Name() ) ;
-      if ( !Link( myNode->Port( "Default" ) , myEndNode->Port( "Default" ) ) ) {
-        iobject = SUPERV::SNode::_nil() ;
-        iendobject = SUPERV::ESNode::_nil() ;
-      }
+//JR NPAL14793 05.02.2007 : do not add that link
+//      if ( !Link( myNode->Port( "Default" ) , myEndNode->Port( "Default" ) ) ) {
+//        iobject = SUPERV::SNode::_nil() ;
+//        iendobject = SUPERV::ESNode::_nil() ;
+//      }
     }
   }
   anEndOfSwitch = SUPERV::ESNode::_duplicate( iendobject ) ;