aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-config.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-09-27 16:41:15 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-09-27 16:41:15 +0800
commit5ea4d0a5f11b78d65fb23ac2f7149f0ec15dd757 (patch)
treee559d641346b15ab83f6af99471e463be986f5b1 /widgets/table/e-table-config.c
parent5311b63b88e4a547755219bb5120431bc1be0fc8 (diff)
downloadgsoc2013-evolution-5ea4d0a5f11b78d65fb23ac2f7149f0ec15dd757.tar.gz
gsoc2013-evolution-5ea4d0a5f11b78d65fb23ac2f7149f0ec15dd757.tar.zst
gsoc2013-evolution-5ea4d0a5f11b78d65fb23ac2f7149f0ec15dd757.zip
2007-09-27 mcrha Fix for bug #478871
svn path=/trunk/; revision=34317
Diffstat (limited to 'widgets/table/e-table-config.c')
-rw-r--r--widgets/table/e-table-config.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/widgets/table/e-table-config.c b/widgets/table/e-table-config.c
index d7c6fad7af..3a4ae1dec0 100644
--- a/widgets/table/e-table-config.c
+++ b/widgets/table/e-table-config.c
@@ -466,20 +466,22 @@ config_fields_info_update (ETableConfig *config)
{
ETableColumnSpecification **column;
GString *res = g_string_new ("");
- int i;
+ int i, j;
for (i = 0; i < config->state->col_count; i++){
- for (column = config->source_spec->columns; *column; column++){
+ for (j = 0, column = config->source_spec->columns; *column; column++, j++){
if ((*column)->disabled)
continue;
- if (config->state->columns [i] != (*column)->model_col)
+ if (config->state->columns [i] != j)
continue;
g_string_append (res, dgettext (config->domain, (*column)->title));
- if (column [1])
+ if (i + 1 < config->state->col_count)
g_string_append (res, ", ");
+
+ break;
}
}