diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-10-19 02:40:14 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-10-19 02:40:14 +0000 |
commit | d066fb9d80f9fd9d39b6a93bbb861e9390647caf (patch) | |
tree | 3fe58e2320fa6bee0c4aad82754233a949b1c6ae /src | |
parent | 220b610d605386854926cd8b2713a1056c77e7ab (diff) |
summary_unset_sort_column_id(): fixed crash when using GTK+ 2.4.x.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1245 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/summaryview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/summaryview.c b/src/summaryview.c index 8ed02a97..b333f582 100644 --- a/src/summaryview.c +++ b/src/summaryview.c @@ -903,7 +903,7 @@ static void summary_unset_sort_column_id(SummaryView *summaryview) if (gtk_tree_sortable_get_sort_column_id (GTK_TREE_SORTABLE(summaryview->store), &id, &order) && - id < N_SUMMARY_VISIBLE_COLS) { + id >= 0 && id < N_SUMMARY_VISIBLE_COLS) { GtkTreeViewColumn *column = summaryview->columns[id]; column->sort_column_id = -1; gtk_tree_view_column_set_sort_indicator(column, FALSE); |