From: George Tasker Date: Wed, 8 Mar 2000 14:40:56 +0000 (+0000) Subject: Fixed the fix of the fix so it will compile under VC6 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a00d62c913a96c6cc12cb1ec1f6421dfd8f41ec5?ds=sidebyside Fixed the fix of the fix so it will compile under VC6 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/scrolwin.cpp b/src/generic/scrolwin.cpp index e6afcadfb6..02519f2359 100644 --- a/src/generic/scrolwin.cpp +++ b/src/generic/scrolwin.cpp @@ -633,6 +633,7 @@ void wxScrolledWindow::OnChar(wxKeyEvent& event) szx, szy, // view size (total) clix, cliy; // view size (on screen) + int y; ViewStart(&stx, &sty); GetClientSize(&clix, &cliy); GetVirtualSize(&szx, &szy); @@ -662,7 +663,7 @@ void wxScrolledWindow::OnChar(wxKeyEvent& event) { case WXK_PAGEUP: case WXK_PRIOR: - int y = sty - (5 * cliy / 6); + y = sty - (5 * cliy / 6); Scroll(-1, (y == -1) ? 0 : y); break;