assert in OnSelected() fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -491,6 +491,8 @@ void MyListCtrl::OnSelected(wxListEvent& event)
|
|||||||
if ( !text )
|
if ( !text )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ( GetWindowStyle() & wxLC_REPORT )
|
||||||
|
{
|
||||||
wxListItem info;
|
wxListItem info;
|
||||||
info.m_itemId = event.m_itemIndex;
|
info.m_itemId = event.m_itemIndex;
|
||||||
info.m_col = 1;
|
info.m_col = 1;
|
||||||
@@ -504,6 +506,7 @@ void MyListCtrl::OnSelected(wxListEvent& event)
|
|||||||
{
|
{
|
||||||
wxFAIL_MSG("wxListCtrl::GetItem() failed");
|
wxFAIL_MSG("wxListCtrl::GetItem() failed");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
text->WriteText("OnSelected\n");
|
text->WriteText("OnSelected\n");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user