From b5d63b3390e4de68ccd48b0bd837df96b947e7ad Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 21 Jul 2007 11:41:34 +0000 Subject: [PATCH] correct the last patch: we should compare wxGenericTreeItem pointers, not a pointer with an id git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@47614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/treectlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/treectlg.cpp b/src/generic/treectlg.cpp index 3f5aa413cc..d2ebb95c47 100644 --- a/src/generic/treectlg.cpp +++ b/src/generic/treectlg.cpp @@ -2795,7 +2795,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)