Bug on divergence outputs positions fixed
authorlbessard
Mon, 14 Jan 2008 17:35:05 +0100
changeset 146 cc70dd430601
parent 145 4fb225afddf4
child 147 5ef987c1b927
Bug on divergence outputs positions fixed
graphics/SFC_Objects.py
--- a/graphics/SFC_Objects.py	Fri Jan 11 17:51:56 2008 +0100
+++ b/graphics/SFC_Objects.py	Mon Jan 14 17:35:05 2008 +0100
@@ -1063,9 +1063,9 @@
         for i, output in enumerate(self.Outputs):
             position = output.GetRelPosition()
             if self.RealConnectors:
-                output.SetPosition(wx.Point(int(round(self.RealConnectors["Outputs"][i] * width)), self.Size[1]))
+                output.SetPosition(wx.Point(int(round(self.RealConnectors["Outputs"][i] * width)), height))
             else:
-                output.SetPosition(wx.Point(int(round(float(position.x)*float(width)/float(self.Size[0]))), self.Size[1]))
+                output.SetPosition(wx.Point(int(round(float(position.x)*float(width)/float(self.Size[0]))), height))
             output.MoveConnected()
         self.Size = wx.Size(width, height)
         self.RefreshBoundingBox()