// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
Kind( SUPERV::InLineParameter ) ;
}
}
- toPort->RemoveOutPort() ;
+ if ( toPort->GetOutPort() ) {
+ toPort->RemoveOutPort( false ) ;
+ }
cdebug << "OutPort::RemoveInPort " << NodeName() << "( " << PortName() << " " << PortStatus()
<< " " << Kind() << " ) _InPortsSize " << _InPortsSize << " --> "
<< toPort->NodeName() << "( " << toPort->PortName() << " " << toPort->PortStatus()
int i ;
int index = _MapOfInPorts[ toPort->NodePortName() ] ;
if ( index <= 0 || index > _InPortsSize ) {
- cdebug << "GraphBase::OutPort::RemoveInPort Error " << NodeName() << "( " << PortName()<< " ) --> "
- << toPort->NodeName() << "( " << toPort->PortName() << " )" << endl ;
+//JR NPAL14110 09.02.2007 : Not an error with MacroNodes ...
+ //JRcdebug << "GraphBase::OutPort::RemoveInPort Error " << NodeName() << "( " << PortName()<< " ) --> "
+ //JR << toPort->NodeName() << "( " << toPort->PortName() << " )" << endl ;
return false ;
}
cdebug << "OutPort::RemoveInPort " << NodeName() << "(" << PortName() << ") --> "
Kind( SUPERV::InLineParameter ) ;
}
}
- toPort->RemoveOutPort() ;
+ if ( toPort->GetOutPort() ) {
+ toPort->RemoveOutPort( false ) ;
+ }
return true ;
}
const char* NewNodePortName ) {
int index = _MapOfInPorts[ OldNodePortName ] ;
if ( index <= 0 || index > _InPortsSize ) {
- cdebug << "GraphBase::OutPort::ReNameInPort Error " << OldNodePortName
+ cdebug << "GraphBase::OutPort::ReNameInPort Error in Node " << NodeName() << " " << OldNodePortName
<< " --> " << NewNodePortName << " index " << index << endl ;
return false ;
}