Blind fix to avoid a PyDeadObject error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-07-16 20:35:10 +00:00
parent f50544d8c5
commit a61c65b304

View File

@@ -216,6 +216,10 @@ class ListCtrlAutoWidthMixin:
or calculated a minimum width. This ensure that repeated calls to
_doResize() don't cause the last column to size itself too large.
"""
if not self: # avoid a PyDeadObject error
return
numCols = self.GetColumnCount()
if numCols == 0: return # Nothing to resize.