Use event modifiers and accessors rather than m_ variables directly, which are now protected rather than public with 2.4 compatibility disabled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -239,7 +239,7 @@ void SwitchView::OnFocus(wxFocusEvent& event) {
|
||||
wxScrollBar *hscroll = m_dyn_sash->GetHScrollBar(this);
|
||||
wxScrollBar *vscroll = m_dyn_sash->GetVScrollBar(this);
|
||||
|
||||
if (event.m_eventObject == hscroll || event.m_eventObject == vscroll) {
|
||||
if (event.GetEventObject() == hscroll || event.GetEventObject() == vscroll) {
|
||||
m_view->SetFocus();
|
||||
} else {
|
||||
event.Skip();
|
||||
|
Reference in New Issue
Block a user