Fixed bug FBD variable execution not set when newly created
authorLaurent Bessard
Wed, 12 Jun 2013 00:20:05 +0200
changeset 1248 2f08985625c0
parent 1247 92588e69d853
child 1249 b956c924cbbd
Fixed bug FBD variable execution not set when newly created
editors/Viewer.py
--- a/editors/Viewer.py	Tue Jun 11 23:50:44 2013 +0200
+++ b/editors/Viewer.py	Wed Jun 12 00:20:05 2013 +0200
@@ -2229,6 +2229,7 @@
             id = self.GetNewId()
             values = dialog.GetValues()
             variable = FBD_Variable(self, values["class"], values["expression"], values["var_type"], id)
+            variable.SetExecutionOrder(values["executionOrder"])
             variable.SetPosition(bbox.x, bbox.y)
             variable.SetSize(*self.GetScaledSize(values["width"], values["height"]))
             self.AddBlock(variable)