Fix bug in LDPowerRailDialog
authorlaurent
Thu, 03 Nov 2011 23:38:23 +0100
changeset 583 3f3f9b25ff9f
parent 582 aa41547baa2a
child 584 c04e7af597d9
Fix bug in LDPowerRailDialog
dialogs/LDPowerRailDialog.py
--- 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)