From 380e1c0ccc8aa0578381c7ad76d0c0ebcedb4bbd Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Thu, 7 Aug 2008 15:59:46 +0000 Subject: [PATCH] Fixed scrolling bug where scrollbar was taken to be a valid child window git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/scrlwing.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index 45a6e21f3c..ec5d404f50 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -1341,6 +1341,11 @@ void wxScrollHelper::HandleOnChildFocus(wxChildFocusEvent& event) if ( win == m_targetWindow ) return; // nothing to do +#ifdef __WXMAC__ + if (wxDynamicCast(win, wxScrollBar)) + return; +#endif + // Fixing ticket: http://trac.wxwidgets.org/ticket/9563 // When a child inside a wxControlContainer receives a focus, the // wxControlContainer generates an artificial wxChildFocusEvent for -- 2.47.2