Fix off-by-one error in checks. (Dave Lambert)

Tue Dec 12 11:52:16 2000  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
	off-by-one error in checks. (Dave Lambert)
This commit is contained in:
Owen Taylor 2000-12-12 16:54:47 +00:00 committed by Owen Taylor
parent 944046942a
commit 90461d7def
8 changed files with 36 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
off-by-one error in checks. (Dave Lambert)
2000-12-12 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):

View File

@ -1,3 +1,8 @@
Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
off-by-one error in checks. (Dave Lambert)
2000-12-12 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):

View File

@ -1,3 +1,8 @@
Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
off-by-one error in checks. (Dave Lambert)
2000-12-12 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):

View File

@ -1,3 +1,8 @@
Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
off-by-one error in checks. (Dave Lambert)
2000-12-12 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):

View File

@ -1,3 +1,8 @@
Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
off-by-one error in checks. (Dave Lambert)
2000-12-12 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):

View File

@ -1,3 +1,8 @@
Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
off-by-one error in checks. (Dave Lambert)
2000-12-12 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):

View File

@ -1,3 +1,8 @@
Tue Dec 12 11:52:16 2000 Owen Taylor <otaylor@redhat.com>
* gtk/gtkclist.c (gtk_clist_optimal_column_width): Fix
off-by-one error in checks. (Dave Lambert)
2000-12-12 Alexander Larsson <alexl@redhat.com>
* gdk/linux-fb/gdkkeyboard-fb.c (xlate_close, raw_close):

View File

@ -1689,7 +1689,7 @@ gtk_clist_optimal_column_width (GtkCList *clist,
g_return_val_if_fail (clist != NULL, 0);
g_return_val_if_fail (GTK_CLIST (clist), 0);
if (column < 0 || column > clist->columns)
if (column < 0 || column >= clist->columns)
return 0;
if (GTK_CLIST_SHOW_TITLES(clist) && clist->column[column].button)