--- a/dialogs/LDPowerRailDialog.py Mon Oct 24 02:06:34 2011 +0200
+++ b/dialogs/LDPowerRailDialog.py Thu Nov 03 23:38:23 2011 +0100
@@ -195,7 +195,7 @@
dc = wx.ClientDC(self.Preview)
dc.SetFont(self.Preview.GetFont())
dc.Clear()
- self.PowerRail = LD_PowerRail(self.Preview, self.Type, connectors = [True for i in xrange(self.PinNumber.GetValue())])
+ self.PowerRail = LD_PowerRail(self.Preview, self.Type, connectors = self.PinNumber.GetValue())
min_width, min_height = 2, LD_LINE_SIZE * self.PinNumber.GetValue()
width, height = max(min_width, self.PowerRailMinSize[0]), max(min_height, self.PowerRailMinSize[1])
self.PowerRail.SetSize(width, height)