fixed SelectItem call with an invalid item
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1012,6 +1012,8 @@ void wxTreeCtrl::SelectItem(const wxTreeItemId& itemId,
|
||||
bool unselect_others,
|
||||
bool extended_select)
|
||||
{
|
||||
wxCHECK_RET( itemId.IsOk(), _T("invalid tree item") );
|
||||
|
||||
bool is_single=!(GetWindowStyleFlag() & wxTR_MULTIPLE);
|
||||
|
||||
//wxCHECK_RET( ( (!unselect_others) && is_single),
|
||||
|
Reference in New Issue
Block a user