]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_listctrl.i
reSWIGged
[wxWidgets.git] / wxPython / src / _listctrl.i
index 48a9f0ac311f1f0e02bc0a705c81391c58b0b66f..861e1036215f59b9bb87815ad6e4fa790eaac37d 100644 (file)
@@ -717,7 +717,7 @@ details in the second return value (see wx.LIST_HITTEST flags.)", "");
 
     def IsSelected(self, idx):
         '''return True if the item is selected'''
 
     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)
 
     def SetColumnImage(self, col, image):
         item = self.GetColumn(col)