From: Julian Smart Date: Wed, 22 Apr 2009 14:00:16 +0000 (+0000) Subject: State fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1398e483ccfe6419beb875980f4f58f56fdf464a?ds=sidebyside;hp=6eaa9a7e082a4653642151865df7d0edea480f27 State fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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);