]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/msw/_controls.py
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _controls.py
index 8ec9af9c3e8363eeb5a02fd9b0c7cb3fca748a51..caabd82c1c97b5f177e08142856a5690d71fe495 100644 (file)
@@ -4834,7 +4834,7 @@ class ListCtrl(_core.Control):
 
     def IsSelected(self, idx):
         '''return True if the item is selected'''
-        return self.GetItemState(idx, wx.LIST_STATE_SELECTED) != 0
+        return (self.GetItemState(idx, wx.LIST_STATE_SELECTED) & wx.LIST_STATE_SELECTED) != 0
 
     def SetColumnImage(self, col, image):
         item = self.GetColumn(col)