X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9cd6d737d5adc5fe415cddb3ef0024b9da2b9e08..834999c24830c90128f7d65b2e403d37ae44d1f3:/src/gtk1/textctrl.cpp diff --git a/src/gtk1/textctrl.cpp b/src/gtk1/textctrl.cpp index 05ccf01a77..526f5227c6 100644 --- a/src/gtk1/textctrl.cpp +++ b/src/gtk1/textctrl.cpp @@ -21,6 +21,7 @@ #include #include #include +#include // for fabs #include "gdk/gdk.h" #include "gtk/gtk.h" @@ -1312,6 +1313,8 @@ void wxTextCtrl::Thaw() { if ( HasFlag(wxTE_MULTILINE) ) { + GTK_TEXT(m_text)->vadj->value = 0.0; + gtk_text_thaw(GTK_TEXT(m_text)); } } @@ -1368,6 +1371,6 @@ bool wxTextCtrl::ScrollPages(int pages) if ( !adj ) return FALSE; - return DoScroll(adj, pages*adj->page_increment); + return DoScroll(adj, (int)ceil(pages*adj->page_increment)); }