X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=blobdiff_plain;f=src%2Fui_sensorlist.c;h=f4aa6ecf6c30ee7613ea97f987e63b7f8146bbb2;hp=42b7af659cb337f5d65152703c43f2f9f8779c07;hb=bf5b907924e3bfcde06287168119a2b9b4dc7418;hpb=bcb3deb0d2a0aa7b5d3abfec659771830a3bb5fb diff --git a/src/ui_sensorlist.c b/src/ui_sensorlist.c index 42b7af6..f4aa6ec 100644 --- a/src/ui_sensorlist.c +++ b/src/ui_sensorlist.c @@ -151,8 +151,8 @@ static int get_col_index_at_pos(GtkTreeView *view, int x) for (node = cols; node; node = node->next) { checkcol = (GtkTreeViewColumn *)node->data; - if (x >= colx && - x < (colx + gtk_tree_view_column_get_width(checkcol))) + if (x >= colx + && x < (colx + gtk_tree_view_column_get_width(checkcol))) return coli; else colx += gtk_tree_view_column_get_width(checkcol);