# HG changeset patch # User lbessard # Date 1200328505 -3600 # Node ID cc70dd43060129e8dc475265360d9942a6042f90 # Parent 4fb225afddf47cf268a0b4a49372d6296e1cac0b Bug on divergence outputs positions fixed diff -r 4fb225afddf4 -r cc70dd430601 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()