Changeset 4191

Show
Ignore:
Timestamp:
06/26/08 07:14:33 (2 months ago)
Author:
ed
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dabo/ui/uiwx/dGridSizer.py

    r4186 r4191  
    390390        ret = None 
    391391        itm = self.FindItemAtPosition((row, col)) 
    392         if returnObject: 
     392        if (itm is not None) and returnObject: 
    393393            if itm.IsWindow(): 
    394394                ret = itm.GetWindow()