]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
Don't needlessly indirect through NSNotificationCenter.
[wxWidgets.git] / src / generic / treectlg.cpp
index 704200e11be3e8da73a0272b972b3cb496249097..800e58ad60f36bbc2f928a4de5a7d4c03efcdb43 100644 (file)
@@ -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)