Fix assert when editing an item in multi-selection wxTreeCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Mar 2012 00:29:21 +0000 (00:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 4 Mar 2012 00:29:21 +0000 (00:29 +0000)
commit2e3407de5c888a329bfa073b17fbb0462b3f4135
treedee7d529fa555205f8dc0490c3523e0eac63e8b8
parente18a74e240a24caa99868d77eb12091d7e675388
Fix assert when editing an item in multi-selection wxTreeCtrl.

Don't use GetSelection() in wxTreeCtrl EVT_CHAR_HOOK handler as it can only be
used with single selection controls and results in an assert when used with
multi-selection ones. Simply use GetFocusedItem() instead.

Closes #14062.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/treebase.cpp