From: guigues Date: Mon, 21 Apr 2008 12:43:05 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: r0.6.1~69 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=93d88be3faa40557ad9279e2f32b2f9518fa839f;p=bbtk.git *** empty log message *** --- diff --git a/kernel/src/bbtkAtomicBlackBox.cxx b/kernel/src/bbtkAtomicBlackBox.cxx index ae0869d..99fe6d2 100644 --- a/kernel/src/bbtkAtomicBlackBox.cxx +++ b/kernel/src/bbtkAtomicBlackBox.cxx @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkAtomicBlackBox.cxx,v $ Language: C++ - Date: $Date: 2008/04/18 12:59:14 $ - Version: $Revision: 1.4 $ + Date: $Date: 2008/04/21 12:43:05 $ + Version: $Revision: 1.5 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -81,26 +81,11 @@ namespace bbtk <<(caller?caller->GetFullName():"0")<<") [" < BlackBox::BlackBox(\"" < BlackBox::BlackBox(" < WxBlackBox::bbBackwardUpdate(" <<(caller?caller->GetFullName():"0")<<") [" <GetBlackBoxFromOutput()!="Widget")) ) { BlackBox::OutputConnectorMapType::const_iterator i = bbGetOutputConnectorMap().find("Widget") ; - if ( - i->second->GetConnectionVector().size() != 0 ) + if ( i->second->GetConnectionVector().size() != 0 ) + { bbtkDebugMessage("Process",2, - "-> Output 'Widget' connected : transfering execution to parent" + "-> Output 'Widget' connected : transfering update order to parent" <second->GetConnectionVector().front().lock() - ->GetBlackBoxTo()->bbExecute(false); - done = true; + if ( bbGetUpdateTransferedToParent() ) + { + bbSetUpdateTransferedToParent(false); + bbtkDebugMessage("Process",2, + " ... already transfered : abort" + <second->GetConnectionVector().front().lock() + ->GetBlackBoxTo()->bbExecute(false); + } } } // call 'standard' BlackBox execution method - if (!done) + if (!bbGetUpdateTransferedToParent()) { - bbSetExecuting(false); AtomicBlackBox::bbBackwardUpdate(caller); } @@ -581,7 +582,6 @@ namespace bbtk "<= WxBlackBox::bbBackwardUpdate() [" <