# HG changeset patch
# User Laurent Bessard
# Date 1354810443 -3600
# Node ID 899ca880952847f7780dd87da54fc606a5c80bc0
# Parent  f5a28011d55143c0310b59810c6bf9791b58b179
Fixed bug when copying transition and connected FBD or LD diagram. Wire between the new transition and new FBD or LD diagram was not selected.

diff -r f5a28011d551 -r 899ca8809528 editors/Viewer.py
--- a/editors/Viewer.py	Thu Dec 06 16:19:06 2012 +0100
+++ b/editors/Viewer.py	Thu Dec 06 17:14:03 2012 +0100
@@ -1207,7 +1207,7 @@
                     element.AddOutput()
             if isinstance(element, SFC_Transition) and specific_values["condition_type"] == "connection":
                 connector = element.GetConditionConnector()
-                self.CreateWires(connector, id, specific_values["connection"]["links"], ids, selection)
+                self.CreateWires(connector, instance["id"], specific_values["connection"]["links"], ids, selection)
         else:
             executionControl = False
             for input in instance["inputs"]: