]> git.saurik.com Git - wxWidgets.git/commitdiff
colSortFlag shoudl be an int, not a Boolean
authorRobin Dunn <robin@alldunn.com>
Fri, 2 Jun 2006 03:44:25 +0000 (03:44 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 2 Jun 2006 03:44:25 +0000 (03:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/mixins/listctrl.py

index c649396f72634c5daf8385634260f2ca79021e9e..fbfc82a229cc392e4f5d67c89e2e7121b0c9e066 100644 (file)
@@ -115,7 +115,7 @@ class ColumnSorterMixin:
     def __OnColClick(self, evt):
         oldCol = self._col
         self._col = col = evt.GetColumn()
-        self._colSortFlag[col] = not self._colSortFlag[col]
+        self._colSortFlag[col] = int(not self._colSortFlag[col])
         self.GetListCtrl().SortItems(self.GetColumnSorter())
         self.__updateImages(oldCol)
         evt.Skip()