implementation should use DoFindFocus
authorVáclav Slavík <vslavik@fastmail.fm>
Wed, 29 Sep 2004 15:30:09 +0000 (15:30 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Wed, 29 Sep 2004 15:30:09 +0000 (15:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 00e2e002c369a996dd0aae10b8564c6ef542998c..675685a7b52d9d21c4d22ce13d77c2bc0dd193d0 100644 (file)
@@ -3305,7 +3305,7 @@ void wxListMainWindow::SetFocus()
     //     focus to the panel from wxListTextCtrl because the text control should
     //     disappear when the user clicks outside it.
 
-    wxWindow *oldFocus = FindFocus();
+    wxWindow *oldFocus = DoFindFocus();
 
     if ( oldFocus && oldFocus->GetParent() == this )
     {
@@ -5353,7 +5353,7 @@ void wxGenericListCtrl::SetFocus()
 {
     /* The test in window.cpp fails as we are a composite
        window, so it checks against "this", but not m_mainWin. */
-    if ( FindFocus() != this )
+    if ( DoFindFocus() != this )
         m_mainWin->SetFocus();
 }