editors/Viewer.py
changeset 1247 92588e69d853
parent 1246 101625efb1c1
child 1248 2f08985625c0
--- a/editors/Viewer.py	Tue Jun 11 23:08:06 2013 +0200
+++ b/editors/Viewer.py	Tue Jun 11 23:50:44 2013 +0200
@@ -2228,7 +2228,7 @@
         if dialog.ShowModal() == wx.ID_OK:
             id = self.GetNewId()
             values = dialog.GetValues()
-            variable = FBD_Variable(self, values["class"], values["expression"], values["vr_type"], id)
+            variable = FBD_Variable(self, values["class"], values["expression"], values["var_type"], id)
             variable.SetPosition(bbox.x, bbox.y)
             variable.SetSize(*self.GetScaledSize(values["width"], values["height"]))
             self.AddBlock(variable)