aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/table')
-rw-r--r--widgets/table/e-table-sorted-variable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/table/e-table-sorted-variable.c b/widgets/table/e-table-sorted-variable.c
index e3a0fbc8c5..bf571c9f95 100644
--- a/widgets/table/e-table-sorted-variable.c
+++ b/widgets/table/e-table-sorted-variable.c
@@ -274,7 +274,7 @@ etsv_sort(ETableSortedVariable *etsv)
ascending_closure[j] = column.ascending;
}
printf("allocated\n");
- qsort(E_TABLE_SUBSET(etsv)->map_table, E_TABLE_SUBSET(etsv)->n_map, sizeof(int), qsort_callback);
+ qsort(E_TABLE_SUBSET(etsv)->map_table, rows, sizeof(int), qsort_callback);
printf ("sorted\n");
g_free(vals_closure);
g_free(ascending_closure);