From 1398e483ccfe6419beb875980f4f58f56fdf464a Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Wed, 22 Apr 2009 14:00:16 +0000 Subject: [PATCH] State fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/listctrl_mac.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/carbon/listctrl_mac.cpp b/src/osx/carbon/listctrl_mac.cpp index 62b4566386..1f0b594c94 100644 --- a/src/osx/carbon/listctrl_mac.cpp +++ b/src/osx/carbon/listctrl_mac.cpp @@ -1128,6 +1128,8 @@ bool wxListCtrl::GetItem(wxListItem& info) const if (info.m_itemId >= 0 && info.m_itemId < GetItemCount()) { m_dbImpl->MacGetColumnInfo(info.m_itemId, info.m_col, info); + // MacGetColumnInfo returns erroneous information in the state field, so zero it. + info.SetState(0); if (info.GetMask() & wxLIST_MASK_STATE) { DataBrowserItemID id = (DataBrowserItemID)m_dbImpl->GetItemFromLine(info.m_itemId); -- 2.45.2