From acb805246981932b2ff7f3ce4594866a49eb472c Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 3 Dec 2010 13:48:21 +0200 Subject: [PATCH] Make sure we dont screw things up in Display class when the first column has wx.LIST_AUTOSIZE_USEHEADER width specified --- gui/display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/display.py b/gui/display.py index 356caaf40..0c7921575 100644 --- a/gui/display.py +++ b/gui/display.py @@ -74,7 +74,7 @@ class Display(wx.ListCtrl): info.m_format = wx.LIST_FORMAT_LEFT self.InsertColumnInfo(i, info) col.resized = False - if i == 0: + if i == 0 and col.size != wx.LIST_AUTOSIZE_USEHEADER: col.size += 4 self.SetColumnWidth(i, col.size)