From 4dcfef961d0a83c58951d50471108da4c1262cb3 Mon Sep 17 00:00:00 2001 From: Ron Lee Date: Wed, 8 Mar 2000 13:34:14 +0000 Subject: [PATCH] fix for pageup 'blind spot' git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/scrolwin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generic/scrolwin.cpp b/src/generic/scrolwin.cpp index ada5b1c236..e217fe5adb 100644 --- a/src/generic/scrolwin.cpp +++ b/src/generic/scrolwin.cpp @@ -662,7 +662,8 @@ void wxScrolledWindow::OnChar(wxKeyEvent& event) { case WXK_PAGEUP: case WXK_PRIOR: - Scroll(-1, sty - (5 * cliy / 6)); + int y = sty - (5 * cliy / 6); + Scroll(-1, (y == -1) ? 0 : newy); break; case WXK_PAGEDOWN: -- 2.45.2