dabo Commit
Revision 5687
Date: 2010-02-15 12:15:10 -0800 (Mon, 15 Feb 2010)
Author: Ed
Trac: http://trac.dabodev.com/changeset/5687
Changed:
U trunk/dabo/ui/uiwx/dGrid.py
Log:
Calling autosize from the context menu after clicking outside the actual grid
area caused an error; this fixes that problem. Trac #1337
Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2010-02-15 17:13:00 UTC (rev 5686)
+++ trunk/dabo/ui/uiwx/dGrid.py 2010-02-15 20:15:10 UTC (rev 5687)
@@ -2443,7 +2443,8 @@
self.AutoSizeColumn(self._convertDaboColNumToWxColNum(colNum), setAsMin=False)
except (TypeError, wx.PyAssertionError):
pass
- _setColSize(colNum)
+ if colNum > -1:
+ _setColSize(colNum)
if not self._inAutoSizeLoop:
self.refresh()
_______________________________________________
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]