]> Pileus Git - ~andy/gtk/commitdiff
Fix off-by-one error in checks. (Dave Lambert)
authorOwen Taylor <otaylor@redhat.com>
Tue, 12 Dec 2000 16:54:47 +0000 (16:54 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Tue, 12 Dec 2000 16:54:47 +0000 (16:54 +0000)
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)

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkclist.c

index 74240c4c72cb3b4b666edae65ea0db321cac7af9..be1f2536dc7b04e3384b33ea78e86ed104db939e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index 74240c4c72cb3b4b666edae65ea0db321cac7af9..be1f2536dc7b04e3384b33ea78e86ed104db939e 100644 (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):
index 74240c4c72cb3b4b666edae65ea0db321cac7af9..be1f2536dc7b04e3384b33ea78e86ed104db939e 100644 (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):
index 74240c4c72cb3b4b666edae65ea0db321cac7af9..be1f2536dc7b04e3384b33ea78e86ed104db939e 100644 (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):
index 74240c4c72cb3b4b666edae65ea0db321cac7af9..be1f2536dc7b04e3384b33ea78e86ed104db939e 100644 (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):
index 74240c4c72cb3b4b666edae65ea0db321cac7af9..be1f2536dc7b04e3384b33ea78e86ed104db939e 100644 (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):
index 74240c4c72cb3b4b666edae65ea0db321cac7af9..be1f2536dc7b04e3384b33ea78e86ed104db939e 100644 (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):
index ab5ca5edfa42c780d7b0f474dbcdc69afc312f7c..f79eac7c91b87426fcf5741b75aba3b0a996e390 100644 (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)