From e3f2897bc48b9e42e7b1a412604cca8ec09b6298 Mon Sep 17 00:00:00 2001 From: gyboth Date: Sun, 4 Jan 2009 08:54:54 +0000 Subject: [PATCH] Table highlighting bug fixed. --- src/treeview_helper.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/treeview_helper.c b/src/treeview_helper.c index bc2a006a..e586a0dd 100644 --- a/src/treeview_helper.c +++ b/src/treeview_helper.c @@ -531,12 +531,11 @@ treeview_helper_get_table_element_colour_cups(const League *league, gint table_i { cup_round = &g_array_index(cp(i).rounds, CupRound, k); for(j=0;jchoose_teams->len;j++) - if((strcmp(g_array_index(cup_round->choose_teams, - CupChooseTeam, j).sid, buf) == 0 || - strcmp(g_array_index(cup_round->choose_teams, - CupChooseTeam, j).sid, league->sid) == 0) && - g_array_index(cup_round->choose_teams, - CupChooseTeam, j).from_table == table_index) + if((strcmp(g_array_index(cup_round->choose_teams, CupChooseTeam, j).sid, buf) == 0 || + (strcmp(g_array_index(cup_round->choose_teams, CupChooseTeam, j).sid, league->sid) == 0 && + !g_array_index(cup_round->choose_teams, CupChooseTeam, j).generate)) && + g_array_index(cup_round->choose_teams, + CupChooseTeam, j).from_table == table_index) { if((idx + 1 >= g_array_index(cup_round->choose_teams, CupChooseTeam, j).start_idx &&