]> git.saurik.com Git - wxWidgets.git/commit
Fix wxScrollHelperEvtHandler broken by recent changes to event processing.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 May 2010 17:33:26 +0000 (17:33 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 20 May 2010 17:33:26 +0000 (17:33 +0000)
commitce45133ee7de9002d7fa274cbce6fc5cfab2d4c2
tree2b66bdbe14c42d415b171e8bad62ca1d465fb235
parent55a0f1e30311fee4b9694204afe5b5218dd438d1
Fix wxScrollHelperEvtHandler broken by recent changes to event processing.

Use ProcessEventLocally() added in r64261 (which was probably the one to break
this) to forward event to the window itself instead of ProcessEvent() in
wxScrollHelperEvtHandler::ProcessEvent() implementation. Calling ProcessEvent()
didn't work any more in a case when another event handler was pushed on a
wxScrolledWindow: in this case the EVT_SIZE and EVT_PAINT handlers defined in
the window itself were not called at all any more.

Add a unit test checking for the even more tortuous than usual event
processing path in this particular case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/generic/scrlwing.cpp
tests/events/propagation.cpp