X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSupervision%2FLNode_Impl.cxx;h=00d18232c43c44682c245248a4767abbf9c7cea4;hb=f0808140a04c48920484ebb1864ca058d701d44f;hp=436a59eff60baca4b19047dd02a06322d1cb71b5;hpb=1cbaac50370d660382c7c00c94a1ec13741a4e3a;p=modules%2Fsuperv.git diff --git a/src/Supervision/LNode_Impl.cxx b/src/Supervision/LNode_Impl.cxx index 436a59e..00d1823 100644 --- a/src/Supervision/LNode_Impl.cxx +++ b/src/Supervision/LNode_Impl.cxx @@ -86,22 +86,29 @@ void LNode_Impl::destroy() { delete(_id) ; _thisObj->_remove_ref(); } + else { + MESSAGE("LNode_Impl::destroy ERROR ") ; + } if ( !CORBA::is_nil( aCoupled ) ) { - aCoupled->SetCoupled( "" ) ; +// aCoupled->SetCoupled( "" ) ; : Used in GraphBase::Graph::RemoveNode( EndLoopNode ) : aCoupled->destroy() ; } +// Valid() only after deletion of the corresponding EndLoopNode : + DataFlowEditor()->UnValid() ; } endService( "LNode_Impl::Destroy" ); } bool LNode_Impl::Delete() { beginService( "LNode_Impl::Delete" ); - bool RetVal = false ; + bool RetVal = false ; if ( DataFlowEditor()->IsEditing() ) { + DeletePorts() ; RetVal = DataFlowEditor()->RemoveNode( Name() ) ; - if ( RetVal ) { - RetVal = DataFlowEditor()->IsValid() ; - } +// Valid() only after deletion of the corresponding EndLoopNode : +// if ( RetVal ) { +// RetVal = DataFlowEditor()->IsValid() ; +// } } endService( "LNode_Impl::Delete" ); return RetVal ;