Salome HOME
Gates of MacroNodes
authorrahuel <rahuel@opencascade.com>
Wed, 26 Oct 2005 12:43:54 +0000 (12:43 +0000)
committerrahuel <rahuel@opencascade.com>
Wed, 26 Oct 2005 12:43:54 +0000 (12:43 +0000)
src/GraphBase/DataFlowBase_Graph.cxx

index 606ee89666e0d5a0ee46628d43ca8575fb2b3d0a..c263fbbbbece0e57f002d7d36f620f97fe9da52b 100644 (file)
@@ -1101,7 +1101,13 @@ bool GraphBase::Graph::AddLink( const char* FromNodeName ,
   if ( RetVal ) {
     if ( fromPort->IsGate() && toPort->IsGate() ) {
       CORBA::Any aValue ;
-      aValue <<= (long ) 1 ;
+//JR 29.09.2005 Debug for CEA : we do not do that for MacroNodes :
+      if ( !fromNode->IsMacroNode() ) {
+        aValue <<= (long ) 1 ;
+      }
+      else {
+        aValue <<= (long ) 0 ;
+      }
       fromPort->SetValue( aValue ) ;
     }
 //    else {