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 ); } }