aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-10-27 14:40:44 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-10-27 14:40:44 +0000
commit9676190af1140a687b075f844e6f55368d728483 (patch)
treeda3285558773bfbc83279d90a53c4979d618d831 /gtk
parent164b61e7b034bfafa012b86d1276050e49b5c1fc (diff)
Uh, new attempt to sort hostlist correct...
svn path=/trunk/; revision=26577
Diffstat (limited to 'gtk')
-rw-r--r--gtk/hostlist_table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/hostlist_table.c b/gtk/hostlist_table.c
index 7ea836e248..74e491e33d 100644
--- a/gtk/hostlist_table.c
+++ b/gtk/hostlist_table.c
@@ -253,7 +253,7 @@ hostlist_sort_column(GtkCList *clist, gconstpointer ptr1, gconstpointer ptr2)
text1 = GTK_CELL_TEXT (row1->cell[clist->sort_column])->text;
text2 = GTK_CELL_TEXT (row2->cell[clist->sort_column])->text;
- if (clist->sort_column >= 2 || clist->sort_column <= 7) { /* Integers */
+ if (clist->sort_column >= 2 && clist->sort_column <= 7) { /* Integers */
sscanf(text1, "%" G_GINT64_MODIFIER "u", &i1);
sscanf(text2, "%" G_GINT64_MODIFIER "u", &i2);
if (i1 > i2) {