]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/treebase.cpp
Fix uninitialized variable warning in wxMSW wxFileSystemWatcher code.
[wxWidgets.git] / src / common / treebase.cpp
index 4c0965c435c9e9b1ea9a7446efb919002da77b4e..f831b489adf30e4aa3c9d1e2bd49f4ce16ff0ecb 100644 (file)
@@ -363,7 +363,7 @@ void wxTreeCtrlBase::OnCharHook(wxKeyEvent& event)
                 // fall through
 
             case WXK_RETURN:
-                EndEditLabel(GetSelection(), discardChanges);
+                EndEditLabel(GetFocusedItem(), discardChanges);
 
                 // Do not call Skip() below.
                 return;