Make sure we dont screw things up in Display class when the first column has wx.LIST_AUTOSIZE_USEHEADER width specified

This commit is contained in:
HomeWorld
2010-12-03 13:48:21 +02:00
parent 4fa1ad8e74
commit acb8052469

View File

@@ -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)