From 4a6a526998c160dd1fd8353cee2532206bb36c8e Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 5 May 2000 06:49:40 +0000 Subject: use rows here instead of E_TABLE_SUBSET(etsv)->n_map, since the table can * e-table-sorted-variable.c (etsv_sort): use rows here instead of E_TABLE_SUBSET(etsv)->n_map, since the table can be populated by the gtk_main_iteration above. otherwise the vals_closure may not be fully populated. svn path=/trunk/; revision=2809 --- widgets/table/e-table-sorted-variable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets/table') 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); -- cgit v1.2.3