aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/em-folder-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index d7bbcb7061..54640889e2 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2106,7 +2106,7 @@ tree_autoscroll (EMFolderTree *folder_tree)
adjustment = gtk_tree_view_get_vadjustment (tree_view);
page_size = gtk_adjustment_get_value (adjustment);
- upper = gtk_adjustment_get_value (adjustment);
+ upper = gtk_adjustment_get_upper (adjustment);
value = gtk_adjustment_get_value (adjustment);
value = CLAMP (value + offset, 0.0, upper - page_size);