From d066fb9d80f9fd9d39b6a93bbb861e9390647caf Mon Sep 17 00:00:00 2001 From: hiro Date: Thu, 19 Oct 2006 02:40:14 +0000 Subject: 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 --- src/summaryview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/summaryview.c') 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); -- cgit v1.2.3