aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Toshok <toshok@src.gnome.org>2000-05-05 14:49:40 +0800
committerChris Toshok <toshok@src.gnome.org>2000-05-05 14:49:40 +0800
commit4a6a526998c160dd1fd8353cee2532206bb36c8e (patch)
tree68bcb12bd08da0d5215534394aacf831f3f6237b
parent214c9105509631c39c4d9b60572ee32f0d6d7ea3 (diff)
downloadgsoc2013-evolution-4a6a526998c160dd1fd8353cee2532206bb36c8e.tar.gz
gsoc2013-evolution-4a6a526998c160dd1fd8353cee2532206bb36c8e.tar.zst
gsoc2013-evolution-4a6a526998c160dd1fd8353cee2532206bb36c8e.zip
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
-rw-r--r--widgets/e-table/ChangeLog7
-rw-r--r--widgets/e-table/e-table-sorted-variable.c2
-rw-r--r--widgets/table/e-table-sorted-variable.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/widgets/e-table/ChangeLog b/widgets/e-table/ChangeLog
index bac9d0b748..d8a8b3b579 100644
--- a/widgets/e-table/ChangeLog
+++ b/widgets/e-table/ChangeLog
@@ -1,3 +1,10 @@
+2000-05-04 Chris Toshok <toshok@helixcode.com>
+
+ * 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.
+
2000-05-04 Christopher James Lahey <clahey@helixcode.com>
* e-table-group-container.c, e-table-group-leaf.c,
diff --git a/widgets/e-table/e-table-sorted-variable.c b/widgets/e-table/e-table-sorted-variable.c
index e3a0fbc8c5..bf571c9f95 100644
--- a/widgets/e-table/e-table-sorted-variable.c
+++ b/widgets/e-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);
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);