From a68eb1f80f5d9c9a37f788693fa80d46d1821439 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Mon, 3 Jan 2011 10:48:57 +0200 Subject: [PATCH] Removed a little piece of no more used code in shipbrowser->categoryitem->onpaint --- gui/shipBrowser.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gui/shipBrowser.py b/gui/shipBrowser.py index 8d64ede2f..fb3fb0cdd 100644 --- a/gui/shipBrowser.py +++ b/gui/shipBrowser.py @@ -858,13 +858,6 @@ class CategoryItem(wx.Window): xtext, ytext = mdc.GetTextExtent(fformat) ypos = (rect.height - ytext)/2 - #seems that a scrolled window without scrollbars shown always HasScrollbar >< - - addX = 5 - - fPosX = rect.width - addX - xtext - fPosY = (rect.height -ytext)/2 - event.Skip() class ShipItem(wx.Window):