]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
Fix processing of events for MRU entries #10 and more in docview.
[wxWidgets.git] / src / msw / treectrl.cpp
index 9464bec90b3669822d36e04c1e34098d4910e195..9e8c7e31d1e158ad86ef1dd8c3e46768bae477cc 100644 (file)
@@ -2137,6 +2137,8 @@ void wxTreeCtrl::ClearFocusedItem()
 
 void wxTreeCtrl::SetFocusedItem(const wxTreeItemId& item)
 {
+    wxCHECK_RET( item.IsOk(), wxT("invalid tree item") );
+
     TempSetter set(m_changingSelection);
 
     ::SetFocus(GetHwnd(), HITEM(item));