X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcd79bff8c7c2bccd883dc014de19a1acd2d7dff..9cd808434c01b4e2e5ac9f0c0844eac3af672c98:/src/mac/carbon/listctrl_mac.cpp diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp index 8bc2439167..01045405ec 100644 --- a/src/mac/carbon/listctrl_mac.cpp +++ b/src/mac/carbon/listctrl_mac.cpp @@ -1105,7 +1105,15 @@ bool wxListCtrl::GetItem(wxListItem& info) const if (!IsVirtual()) { if (info.m_itemId >= 0 && info.m_itemId < GetItemCount()) + { m_dbImpl->MacGetColumnInfo(info.m_itemId, info.m_col, info); + if (info.GetMask() & wxLIST_MASK_STATE) + { + DataBrowserItemID id = (DataBrowserItemID)m_dbImpl->GetItemFromLine(info.m_itemId); + if (IsDataBrowserItemSelected( m_dbImpl->GetControlRef(), id )) + info.SetState(info.GetState() | wxLIST_STATE_SELECTED); + } + } } else {