X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/21131143d58c4c2c24d529b421285bec59473f1b..0966aee3d9eac832fe7dcf66db2eb06e76c51da5:/contrib/src/gizmos/dynamicsash.cpp?ds=sidebyside diff --git a/contrib/src/gizmos/dynamicsash.cpp b/contrib/src/gizmos/dynamicsash.cpp index 08d1cecac7..ea93094de6 100644 --- a/contrib/src/gizmos/dynamicsash.cpp +++ b/contrib/src/gizmos/dynamicsash.cpp @@ -112,7 +112,7 @@ public: virtual wxEvent* Clone() const { return new wxDynamicSashReparentEvent(*this); } - DECLARE_DYNAMIC_CLASS(wxDynamicSashReparentEvent); + DECLARE_DYNAMIC_CLASS(wxDynamicSashReparentEvent) }; @@ -1180,7 +1180,7 @@ void wxDynamicSashWindowLeaf::OnScroll(wxScrollEvent &WXUNUSED(event)) { } void wxDynamicSashWindowLeaf::OnFocus(wxFocusEvent &event) { - if (event.m_eventObject == m_hscroll || event.m_eventObject == m_vscroll) { + if (event.GetEventObject() == m_hscroll || event.GetEventObject() == m_vscroll) { m_child->SetFocus(); } }