Fix bug when loading output variable
authorLaurent Bessard
Sat, 07 Jul 2012 20:50:24 +0200
changeset 721 f3dffc1a5ffe
parent 720 2a9d4eafaddd
child 722 8c098eb05498
Fix bug when loading output variable
graphics/FBD_Objects.py
--- a/graphics/FBD_Objects.py	Sat Jul 07 20:48:23 2012 +0200
+++ b/graphics/FBD_Objects.py	Sat Jul 07 20:50:24 2012 +0200
@@ -701,7 +701,7 @@
                     posx = round_scaling(posx, scaling[0])
                 self.Pos.x = posx
             elif self.Type == OUTPUT:
-                posy = max(0, self.Pos.x + (width - min_width) / 2)
+                posx = max(0, self.Pos.x + (width - min_width) / 2)
                 if scaling is not None:
                     posx = round_scaling(posx, scaling[0])
                 self.Pos.x = posx