git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28271
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
or calculated a minimum width. This ensure that repeated calls to
_doResize() don't cause the last column to size itself too large.
"""
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.
numCols = self.GetColumnCount()
if numCols == 0: return # Nothing to resize.