Bug loading step with wrong input definition fixed
authorlaurent
Thu, 27 Aug 2009 18:29:46 +0200
changeset 400 12b55d82d363
parent 399 3b9e0b092298
child 401 d3f086b0da30
Bug loading step with wrong input definition fixed
Viewer.py
--- a/Viewer.py	Thu Aug 27 18:28:16 2009 +0200
+++ b/Viewer.py	Thu Aug 27 18:29:46 2009 +0200
@@ -907,6 +907,8 @@
             if isinstance(element, SFC_Step):
                 if len(instance["inputs"]) > 0:
                     element.AddInput()
+                else:
+                    element.RemoveInput()
                 if len(instance["outputs"]) > 0:
                     element.AddOutput()
             if isinstance(element, SFC_Transition) and specific_values["condition_type"] == "connection":