dabo Commit
Revision 5551
Date: 2009-12-14 10:34:02 -0800 (Mon, 14 Dec 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5551

Changed:
U   trunk/dabo/ui/uiwx/dGrid.py

Log:
Received an automated error report from my application in the field that curCol
can apparently evaluate to None. Added a check.


Diff:
Modified: trunk/dabo/ui/uiwx/dGrid.py
===================================================================
--- trunk/dabo/ui/uiwx/dGrid.py 2009-12-08 16:24:08 UTC (rev 5550)
+++ trunk/dabo/ui/uiwx/dGrid.py 2009-12-14 18:34:02 UTC (rev 5551)
@@ -3234,7 +3234,7 @@
                        if not headerIsSizing and (self.getColNumByX(x) == 
self.getColNumByX(x-5) == self.getColNumByX(x+5)):
                                if not headerIsDragging:
                                        curCol = self.getColByX(x)
-                                       if self.MovableColumns and 
curCol.Movable:
+                                       if self.MovableColumns and curCol and 
curCol.Movable:
                                                # A header reposition is 
beginning
                                                self._headerDragging = True
                                                self._headerDragFrom = (x,y)



_______________________________________________
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]

Reply via email to