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:
parent
a1b82138ef
commit
8b04a037d0
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user