dabo Commit
Revision 4191
Date: 2008-06-26 07:14:33 -0700 (Thu, 26 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4191

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

Log:
Fixed an error in getItemByRowCol() when the requested item is not in the grid 
sizer.


Diff:
Modified: trunk/dabo/ui/uiwx/dGridSizer.py
===================================================================
--- trunk/dabo/ui/uiwx/dGridSizer.py    2008-06-26 13:43:51 UTC (rev 4190)
+++ trunk/dabo/ui/uiwx/dGridSizer.py    2008-06-26 14:14:33 UTC (rev 4191)
@@ -389,7 +389,7 @@
                """
                ret = None
                itm = self.FindItemAtPosition((row, col))
-               if returnObject:
+               if (itm is not None) and returnObject:
                        if itm.IsWindow():
                                ret = itm.GetWindow()
                        elif itm.IsSizer():




_______________________________________________
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