From 9dd791b9bf46d155727cf07dddb25571a9a2cf75 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 17 Dec 2015 15:08:47 +0300 Subject: remove unneeded assert we don't need to crash here, thanks. the code below is able to handle excessive column ids just fine. fixes https://github.com/mate-desktop/mate-system-monitor/issues/76 --- src/proctable.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/proctable.cpp b/src/proctable.cpp index 426cc0b..db6a122 100644 --- a/src/proctable.cpp +++ b/src/proctable.cpp @@ -146,8 +146,6 @@ proctable_set_columns_order(GtkTreeView *treeview, GSList *order) id = GPOINTER_TO_INT(it->data); - g_assert(id >= 0 && id < NUM_COLUMNS); - cur = my_gtk_tree_view_get_column_with_sort_column_id(treeview, id); if(cur && cur != last) -- cgit v1.2.1