X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9d6a5f3d87e0e09e4d47246c92d5f86fd6871a8..bc8e3eadaf1d794cb05e4f88bc8dc206d4d43bc4:/wxPython/src/gtk/_controls.py diff --git a/wxPython/src/gtk/_controls.py b/wxPython/src/gtk/_controls.py index 8a966db284..8e84e2809b 100644 --- a/wxPython/src/gtk/_controls.py +++ b/wxPython/src/gtk/_controls.py @@ -4822,7 +4822,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)