aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-state.c
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2008-12-15 20:15:16 +0800
committerMilan Crha <mcrha@src.gnome.org>2008-12-15 20:15:16 +0800
commitcfa073deca1450a6ae17bad6b932a593f1d2bfc5 (patch)
treee70ce01724f8462766d319d47dafb232cab56222 /widgets/table/e-table-state.c
parent1a5bb1cef60c2b271749afe0a075f60c510e9c74 (diff)
downloadgsoc2013-evolution-cfa073deca1450a6ae17bad6b932a593f1d2bfc5.tar
gsoc2013-evolution-cfa073deca1450a6ae17bad6b932a593f1d2bfc5.tar.gz
gsoc2013-evolution-cfa073deca1450a6ae17bad6b932a593f1d2bfc5.tar.bz2
gsoc2013-evolution-cfa073deca1450a6ae17bad6b932a593f1d2bfc5.tar.lz
gsoc2013-evolution-cfa073deca1450a6ae17bad6b932a593f1d2bfc5.tar.xz
gsoc2013-evolution-cfa073deca1450a6ae17bad6b932a593f1d2bfc5.tar.zst
gsoc2013-evolution-cfa073deca1450a6ae17bad6b932a593f1d2bfc5.zip
** Fix for bug #557176
2008-12-15 Milan Crha <mcrha@redhat.com> ** Fix for bug #557176 * e-table-state.c: (e_table_state_load_from_node): Ensure the 'sort_info' member is never NULL. svn path=/trunk/; revision=36896
Diffstat (limited to 'widgets/table/e-table-state.c')
-rw-r--r--widgets/table/e-table-state.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/table/e-table-state.c b/widgets/table/e-table-state.c
index 9f173eb573..69d33486a2 100644
--- a/widgets/table/e-table-state.c
+++ b/widgets/table/e-table-state.c
@@ -189,6 +189,9 @@ e_table_state_load_from_node (ETableState *state,
state->columns = g_new(int, state->col_count);
state->expansions = g_new(double, state->col_count);
+ if (!state->sort_info)
+ state->sort_info = e_table_sort_info_new ();
+
for (iterator = list, i = 0; iterator; i++) {
int_and_double *column_info = iterator->data;