X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f7f0d0a2d882ca8fab9e9c98f9b8e7188b4f426..afb6a92feec67d021691e2b2c466378bf3adbf2d:/src/generic/treectlg.cpp diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 704200e11b..800e58ad60 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2766,7 +2766,7 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event ) 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)