]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkWidgetBlackBox.txx
#3299 BBTK Bug New Normal wt4
[bbtk.git] / kernel / src / bbtkWidgetBlackBox.txx
index 0c2a7a12f6751428e461385c2f4b4897b52e9d4d..0a225548b0e31842e6bc2d869b009f01dae9ee0c 100644 (file)
@@ -195,23 +195,21 @@ namespace bbtk
     // If input is connected 
     BlackBoxInputConnector* c = bbGetInputConnectorMap().find(in)->second ;
     if ( c->IsConnected() )                    
-      {
-       // Get black box from 
-       BlackBox::Pointer from = 
-         c->GetConnection()->GetBlackBoxFrom();
-       // Cast it into a WidgetBlackBox
-       typename WidgetBlackBox<T>::Pointer wfrom 
-         = boost::dynamic_pointer_cast<WidgetBlackBox<T> >(from);
-       // If the black box from construction is not done yet : do it
-        // If not constructed do it 
-       wfrom->bbInitializeProcessing();
-       // Call bbUserCreateWidget
-       wfrom->bbUserCreateWidget(parent);
-       // Get the widget created
-       w = wfrom->bbGetOutputWidget();
-       // Insert the box into the NestedWidgetBoxes list
-       bbmNestedWidgetBoxes.push_back(from);
-      }
+    {
+               // Get black box from 
+               BlackBox::Pointer from = c->GetConnection()->GetBlackBoxFrom();
+               // Cast it into a WidgetBlackBox
+               typename WidgetBlackBox<T>::Pointer wfrom  = boost::dynamic_pointer_cast<WidgetBlackBox<T> >(from);
+               // If the black box from construction is not done yet : do it
+                // If not constructed do it 
+               wfrom->bbInitializeProcessing();
+               // Call bbUserCreateWidget
+               wfrom->bbUserCreateWidget(parent);
+               // Get the widget created
+               w = wfrom->bbGetOutputWidget();
+               // Insert the box into the NestedWidgetBoxes list
+               bbmNestedWidgetBoxes.push_back(from);
+    } // if IsConnected
     return w;
   }
   //==================================================================