--- a/LDViewer.py Fri Sep 09 11:58:53 2011 +0200
+++ b/LDViewer.py Fri Sep 09 17:19:35 2011 +0200
@@ -184,6 +184,7 @@
def RefreshView(self, selection=None):
Viewer.RefreshView(self, selection)
+ wx.CallAfter(self.Refresh)
for i, rung in enumerate(self.Rungs):
bbox = rung.GetBoundingBox()
if i < len(self.RungComments):
@@ -1151,11 +1152,9 @@
else:
if startpoint.y + offset != endpoint.y:
if isinstance(element, LD_PowerRail):
- element.MoveConnector(i, startpoint.y - endpoint.y)
+ element.MoveConnector(connector, startpoint.y - endpoint.y)
elif isinstance(block, LD_PowerRail):
- index = block.GetConnectorIndex(wire.EndConnected)
- if index:
- block.MoveConnector(index, startpoint.y - endpoint.y)
+ block.MoveConnector(wire.EndConnected, startpoint.y - endpoint.y)
else:
block.Move(0, startpoint.y + offset - endpoint.y)
self.RefreshPosition(block, False)