git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47614
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
case WXK_RIGHT:
// this works the same as the down arrow except that we
// also expand the item if it wasn't expanded yet
case WXK_RIGHT:
// this works the same as the down arrow except that we
// also expand the item if it wasn't expanded yet
- if (m_current != GetRootItem() || !HasFlag(wxTR_HIDE_ROOT))
+ if (m_current != GetRootItem().m_pItem || !HasFlag(wxTR_HIDE_ROOT))
Expand(m_current);
//else: don't try to expand hidden root item (which can be the
// current one when the tree is empty)
Expand(m_current);
//else: don't try to expand hidden root item (which can be the
// current one when the tree is empty)