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:
@@ -929,6 +929,9 @@ void wxGenericTreeCtrl::SetItemData(const wxTreeItemId& item, wxTreeItemData *da
|
|||||||
{
|
{
|
||||||
wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
|
wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
|
||||||
|
|
||||||
|
if (data)
|
||||||
|
data->SetId( item );
|
||||||
|
|
||||||
((wxGenericTreeItem*) item.m_pItem)->SetData(data);
|
((wxGenericTreeItem*) item.m_pItem)->SetData(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user