# HG changeset patch
# User Laurent Bessard
# Date 1370989205 -7200
# Node ID 2f08985625c005a9bc4b039c92ae97b68b245b2d
# Parent  92588e69d853e8111029cf7a612d605cdf812b50
Fixed bug FBD variable execution not set when newly created

diff -r 92588e69d853 -r 2f08985625c0 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)