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.
authorLaurent Bessard
Thu, 06 Dec 2012 17:14:03 +0100
changeset 896 899ca8809528
parent 895 f5a28011d551
child 897 3cd39bc7dbad
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.
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"]: