fix assert failure in LVN_KEYDOWN handler sometimes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-04-07 22:01:01 +00:00
parent 9d0c056be4
commit 73cdc44ee3

View File

@@ -1435,7 +1435,11 @@ bool wxListCtrl::MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result)
event.m_code = wxCharCodeMSWToWX(wVKey);
}
event.m_item.m_data = GetItemData(lItem);
if ( lItem != -1 )
{
// fill the client data field too
event.m_item.m_data = GetItemData(lItem);
}
}
break;