diff -r 734e02ab4018 -r 29b6b70e1721 graphics/LD_Objects.py --- a/graphics/LD_Objects.py Fri Oct 19 10:15:23 2007 +0200 +++ b/graphics/LD_Objects.py Fri Oct 19 17:08:08 2007 +0200 @@ -131,6 +131,7 @@ for connect in self.Connectors: connect_pos = connect.GetRelPosition() connect.SetPosition(wx.Point(connect_pos.x, connect_pos.y - miny)) + self.Connectors.sort(lambda x, y: x.Pos.y.__cmp__(y.Pos.y)) maxy = 0 for connect in self.Connectors: connect_pos = connect.GetRelPosition() @@ -283,14 +284,15 @@ # Popup the divergence menu without delete branch # self.Parent.PopupDivergenceMenu(False) - # Refreshes the divergence state according to move defined and handle selected + # Refreshes the powerrail state according to move defined and handle selected def ProcessDragging(self, movex, movey): handle_type, handle = self.Handle # A connector has been handled if handle_type == HANDLE_CONNECTOR: self.MoveConnector(handle, movey) - else: - Graphic_Element.ProcessDragging(self, movex, movey) + return False, True + else: + return Graphic_Element.ProcessDragging(self, movex, movey) # Refreshes the power rail model def RefreshModel(self, move=True):