]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Workspace.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / Workspace.cxx
index 90c26d5415ca430af81d910a7187f0274eb08cb2..faef957a1aa042ff1285d46b2b099c14e57617de 100644 (file)
@@ -350,12 +350,17 @@ GetConnections(
     {
       for( auto i = ins.begin( ); i != ins.end( ); ++i )
       {
-        auto od = orig->GetOutput( *o );
-        auto id = dest->GetInput( *i );
-        if( od != NULL && od == id )
-          conns.push_back(
-            std::pair< std::string, std::string >( *o, *i )
-            );
+        unsigned int nInputs = dest->GetInputSize( *i );
+        for( unsigned j = 0; j < nInputs; ++j )
+        {
+          auto od = orig->GetOutput( *o );
+          auto id = dest->GetInput( *i, j );
+          if( od != NULL && od == id )
+            conns.push_back(
+              std::pair< std::string, std::string >( *o, *i )
+              );
+
+        } // rof
 
       } // rof