]> git.saurik.com Git - wxWidgets.git/commitdiff
State fix
authorJulian Smart <julian@anthemion.co.uk>
Wed, 22 Apr 2009 14:00:16 +0000 (14:00 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 22 Apr 2009 14:00:16 +0000 (14:00 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/carbon/listctrl_mac.cpp

index 62b45663864bffb5fb432ff64dcf034851fea153..1f0b594c94b34be8f78c2af3e6cad6a9c8564281 100644 (file)
@@ -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);