diff options
-rw-r--r-- | widgets/table/e-table-without.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/table/e-table-without.c b/widgets/table/e-table-without.c index e14b8aca8b..49309802e9 100644 --- a/widgets/table/e-table-without.c +++ b/widgets/table/e-table-without.c @@ -348,14 +348,14 @@ e_table_without_show_all (ETableWithout *etw) } etw->priv->hash = g_hash_table_new (etw->priv->hash_func, etw->priv->compare_func); - g_free (etss->map_table); row_count = e_table_model_row_count (E_TABLE_MODEL(etw)); + g_free (etss->map_table); etss->map_table = g_new (int, row_count); for (i = 0; i < row_count; i++) { - etss->map_table[i++] = i; + etss->map_table[i] = i; } - etss->n_map = i; + etss->n_map = row_count; e_table_model_changed (E_TABLE_MODEL (etw)); } |