]> git.saurik.com Git - wxWidgets.git/commitdiff
Set ID correctly for wxScrollWinEvents generated by wxScrollHelper.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2012 00:52:08 +0000 (00:52 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 10 Nov 2012 00:52:08 +0000 (00:52 +0000)
Add forgotten wxEvent::SetId() calls.

See #14757.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/scrlwing.cpp

index 81dedd9875bf5ff84381ffb0d5956fce104eab55..7f77aa8f0b2caf2cc7f976340ce591732e02fd9b 100644 (file)
@@ -147,6 +147,7 @@ void wxAutoScrollTimer::Notify()
         // first scroll the window if we are allowed to do it
         wxScrollWinEvent event1(m_eventType, m_pos, m_orient);
         event1.SetEventObject(m_win);
+        event1.SetId(m_win->GetId());
         if ( m_scrollHelper->SendAutoScrollEvents(event1) &&
                 m_win->GetEventHandler()->ProcessEvent(event1) )
         {
@@ -858,6 +859,7 @@ void wxScrollHelperBase::HandleOnChar(wxKeyEvent& event)
 
     newEvent.SetPosition(0);
     newEvent.SetEventObject(m_win);
+    newEvent.SetId(m_win->GetId());
 
     // this is the default, it's changed to wxHORIZONTAL below if needed
     newEvent.SetOrientation(wxVERTICAL);