From d4d563705e3a8dcfaa13161418b989164b5f15b0 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 13 Oct 2000 16:59:15 +0000 Subject: NULL is not a valid argument to `xmlNewDoc'. Was this code ever tested *at all*? svn path=/trunk/; revision=5899 --- widgets/table/e-table-state.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'widgets/table/e-table-state.c') diff --git a/widgets/table/e-table-state.c b/widgets/table/e-table-state.c index 1912dd1ce8..f051f08672 100644 --- a/widgets/table/e-table-state.c +++ b/widgets/table/e-table-state.c @@ -114,7 +114,7 @@ e_table_state_save_to_file (ETableState *state, const char *filename) { xmlDoc *doc; - doc = xmlNewDoc(NULL); + doc = xmlNewDoc("1.0"); xmlDocSetRootElement(doc, e_table_state_save_to_node(state, NULL)); xmlSaveFile(filename, doc); } @@ -142,6 +142,7 @@ e_table_state_save_to_node (ETableState *state, { int i; xmlNode *node; + if (parent) node = xmlNewChild (parent, NULL, "ETableState", NULL); else @@ -155,6 +156,7 @@ e_table_state_save_to_node (ETableState *state, e_xml_set_integer_prop_by_name (new_node, "source", column); } + e_table_sort_info_save_to_node(state->sort_info, node); return node; -- cgit