]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
documented return value of Find[Absolute]ValidPath() correctly
[wxWidgets.git] / src / generic / treectlg.cpp
index 5dede2bf17856cab073f40d92c85cc865244dfe4..82cd049b804f1ef600be748fce723829e4b4e2e9 100644 (file)
@@ -2768,9 +2768,9 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event )
                   (keyCode >= 'A' && keyCode <= 'Z' )))
             {
                 // find the next item starting with the given prefix
-                char ch = (char)keyCode;
+                wxChar ch = (wxChar)keyCode;
 
-                wxTreeItemId id = FindItem(m_current, m_findPrefix + (wxChar)ch);
+                wxTreeItemId id = FindItem(m_current, m_findPrefix + ch);
                 if ( !id.IsOk() )
                 {
                     // no such item