From bfb45391db31d59d67561b113871ea7cbdfc0058 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Tue, 10 Dec 2002 01:00:44 +0000 Subject: [PATCH] x can be in the range [0, upper], which can be bigger than [0, page_size]. Tue Dec 10 02:14:12 2002 Kristian Rietveld * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): x can be in the range [0, upper], which can be bigger than [0, page_size]. (Fixed #99778, reported and testcase provided by Carlos Garnacho Parro). --- ChangeLog | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-2 | 7 +++++++ ChangeLog.pre-2-4 | 7 +++++++ ChangeLog.pre-2-6 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ gtk/gtktreeview.c | 2 +- 7 files changed, 43 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6ca3cbfc02..6e228770de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Tue Dec 10 02:14:12 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): x can be in + the range [0, upper], which can be bigger than [0, page_size]. + (Fixed #99778, reported and testcase provided by Carlos Garnacho + Parro). + Mon Dec 9 19:49:03 2002 Owen Taylor * gtk/gtkwindow.c (gtk_window_move_resize): Remove diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 6ca3cbfc02..6e228770de 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +Tue Dec 10 02:14:12 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): x can be in + the range [0, upper], which can be bigger than [0, page_size]. + (Fixed #99778, reported and testcase provided by Carlos Garnacho + Parro). + Mon Dec 9 19:49:03 2002 Owen Taylor * gtk/gtkwindow.c (gtk_window_move_resize): Remove diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 6ca3cbfc02..6e228770de 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +Tue Dec 10 02:14:12 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): x can be in + the range [0, upper], which can be bigger than [0, page_size]. + (Fixed #99778, reported and testcase provided by Carlos Garnacho + Parro). + Mon Dec 9 19:49:03 2002 Owen Taylor * gtk/gtkwindow.c (gtk_window_move_resize): Remove diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 6ca3cbfc02..6e228770de 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +Tue Dec 10 02:14:12 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): x can be in + the range [0, upper], which can be bigger than [0, page_size]. + (Fixed #99778, reported and testcase provided by Carlos Garnacho + Parro). + Mon Dec 9 19:49:03 2002 Owen Taylor * gtk/gtkwindow.c (gtk_window_move_resize): Remove diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 6ca3cbfc02..6e228770de 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +Tue Dec 10 02:14:12 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): x can be in + the range [0, upper], which can be bigger than [0, page_size]. + (Fixed #99778, reported and testcase provided by Carlos Garnacho + Parro). + Mon Dec 9 19:49:03 2002 Owen Taylor * gtk/gtkwindow.c (gtk_window_move_resize): Remove diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 6ca3cbfc02..6e228770de 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +Tue Dec 10 02:14:12 2002 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_get_path_at_pos): x can be in + the range [0, upper], which can be bigger than [0, page_size]. + (Fixed #99778, reported and testcase provided by Carlos Garnacho + Parro). + Mon Dec 9 19:49:03 2002 Owen Taylor * gtk/gtkwindow.c (gtk_window_move_resize): Remove diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 9569a2a849..e9e9325011 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -9772,7 +9772,7 @@ gtk_tree_view_get_path_at_pos (GtkTreeView *tree_view, if (tree_view->priv->tree == NULL) return FALSE; - if (x > tree_view->priv->hadjustment->page_size) + if (x > tree_view->priv->hadjustment->upper) return FALSE; if (x < 0 || y < 0)