X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fbb526ccedfa0a89b08e14f683f172a62d4353a5..8ad31f9dfdb85a54cd080aac6957883f2f3e38e3:/src/univ/scrolbar.cpp diff --git a/src/univ/scrolbar.cpp b/src/univ/scrolbar.cpp index 7cdc4e9676..3f648b0ab0 100644 --- a/src/univ/scrolbar.cpp +++ b/src/univ/scrolbar.cpp @@ -25,12 +25,13 @@ #if wxUSE_SCROLLBAR +#include "wx/scrolbar.h" + #ifndef WX_PRECOMP #include "wx/timer.h" - #include "wx/dcclient.h" - #include "wx/scrolbar.h" #include "wx/validate.h" + #include "wx/log.h" #endif #include "wx/univ/scrtimer.h" @@ -38,7 +39,6 @@ #include "wx/univ/renderer.h" #include "wx/univ/inphand.h" #include "wx/univ/theme.h" -#include "wx/log.h" #define WXDEBUG_SCROLLBAR @@ -553,7 +553,7 @@ bool wxScrollBar::PerformAction(const wxControlAction& action, wxScrollEvent event(scrollType, this->GetId(), m_thumbPos, IsVertical() ? wxVERTICAL : wxHORIZONTAL); event.SetEventObject(this); - GetParent()->GetEventHandler()->ProcessEvent(event); + GetEventHandler()->ProcessEvent(event); } else // part of the window {