Commit 90461d7d authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

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)
parent 94404694
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
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):
......
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment