From cfa073deca1450a6ae17bad6b932a593f1d2bfc5 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 15 Dec 2008 12:15:16 +0000 Subject: ** Fix for bug #557176 2008-12-15 Milan Crha ** 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 --- widgets/table/ChangeLog | 7 +++++++ widgets/table/e-table-state.c | 3 +++ 2 files changed, 10 insertions(+) (limited to 'widgets/table') diff --git a/widgets/table/ChangeLog b/widgets/table/ChangeLog index 4034fe0a5a..d2de4354a2 100644 --- a/widgets/table/ChangeLog +++ b/widgets/table/ChangeLog @@ -1,3 +1,10 @@ +2008-12-15 Milan Crha + + ** Fix for bug #557176 + + * e-table-state.c: (e_table_state_load_from_node): + Ensure the 'sort_info' member is never NULL. + 2008-11-28 Felix Riemann ** Part of fix for bug #554464 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; -- cgit