dabo Commit
Revision 4610
Date: 2008-10-26 09:53:25 -0700 (Sun, 26 Oct 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4610
Changed:
U trunk/dabo/ui/uiwx/dListControl.py
Log:
Fixed a potential bug due to the default for _sortColumn being -1.
Diff:
Modified: trunk/dabo/ui/uiwx/dListControl.py
===================================================================
--- trunk/dabo/ui/uiwx/dListControl.py 2008-10-26 15:35:02 UTC (rev 4609)
+++ trunk/dabo/ui/uiwx/dListControl.py 2008-10-26 16:53:25 UTC (rev 4610)
@@ -423,7 +423,8 @@
for each column.
"""
data = []
- col = self._sortColumn
+ # Don't allow the default -1 for sort column.
+ col = max(0, self._sortColumn)
for row in range(self.RowCount):
try:
itm = self.GetItem(row, col)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]