From e01005e27ce013805f5cc9c3260a34646b40131b Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Mon, 19 Jan 2015 03:03:59 +0000 Subject: [PATCH] Fix problem with scrollbar events in wxQT the local variable event shadowed the parameter which caused the incorrect value to be sent Thanks @seandepagnier git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/qt/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qt/window.cpp b/src/qt/window.cpp index 675618c11d..ca5c2510a7 100644 --- a/src/qt/window.cpp +++ b/src/qt/window.cpp @@ -607,8 +607,8 @@ void wxWindowQt::QtOnScrollBarEvent( wxScrollEvent& event ) if ( windowEventType != 0 ) { - wxScrollWinEvent event( windowEventType, event.GetPosition(), event.GetOrientation() ); - ProcessWindowEvent( event ); + wxScrollWinEvent e( windowEventType, event.GetPosition(), event.GetOrientation() ); + ProcessWindowEvent( e ); } }