From 6a5d0475d099ee86954dad4e1ef3bbbad4132abe Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Thu, 28 Oct 2010 20:32:44 +0300 Subject: [PATCH] The war on constants, Attack of the functions --- gui/shipBrowser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 07da39d3c..3ceb54c1a 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -1009,8 +1009,8 @@ class ShipItem(wx.Window): mdc.DrawText(fformat %fittings if fittings >0 else fformat, textStart, ypos) - self.editPosX = rect.width - 20 - self.editPosY = (rect.height - 16) / 2 + self.editPosX = rect.width - self.newToggleBmp.GetWidth() -5 + self.editPosY = (rect.height - self.newToggleBmp.GetHeight()) / 2 mdc.DrawBitmap(self.newToggleBmp, self.editPosX, self.editPosY, 0) mdc.SetFont(wx.Font(7, wx.SWISS, wx.NORMAL, wx.NORMAL, False))