Applied SetItemData() patch.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2004-03-20 16:21:19 +00:00
parent a4e0917b48
commit 74707d69ca

View File

@ -929,6 +929,9 @@ void wxGenericTreeCtrl::SetItemData(const wxTreeItemId& item, wxTreeItemData *da
{
wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
if (data)
data->SetId( item );
((wxGenericTreeItem*) item.m_pItem)->SetData(data);
}