diff -r 441f31474b50 -r 8350222a81c3 dialogs/LDPowerRailDialog.py --- a/dialogs/LDPowerRailDialog.py Fri Jun 14 10:52:08 2013 +0200 +++ b/dialogs/LDPowerRailDialog.py Fri Jun 14 10:54:21 2013 +0200 @@ -95,7 +95,7 @@ @return: Tuple containing minimal size (width, height) or None if no element defined """ - return (2, LD_LINE_SIZE * self.PinNumber.GetValue()) + return self.Element.GetMinSize(True) def GetPowerRailType(self): """