From 4e9be62bb3fcf09ce38d94dd2ce41981fd0fd30d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 19 Aug 2006 10:05:59 +0000 Subject: [PATCH] ScrollLines() didn't use correct step_increment, so e.g. wxTextCtrl scrolled in tiny steps instead of by lines git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40666 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 5a57e60889..a15a745cfe 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3653,7 +3653,7 @@ bool wxWindowGTK::ScrollLines(int lines) { GtkAdjustment* adj = range->adjustment; const int pos = int(adj->value + 0.5); - gtk_range_set_value(range, pos + lines); + gtk_range_set_value(range, pos + lines*adj->step_increment); changed = pos != int(adj->value + 0.5); } return changed; @@ -3667,7 +3667,7 @@ bool wxWindowGTK::ScrollPages(int pages) { GtkAdjustment* adj = range->adjustment; const int pos = int(adj->value + 0.5); - gtk_range_set_value(range, pos + pages * adj->page_size); + gtk_range_set_value(range, pos + pages*adj->page_increment); changed = pos != int(adj->value + 0.5); } return changed;