aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-state.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-10-14 00:59:15 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-10-14 00:59:15 +0800
commitd4d563705e3a8dcfaa13161418b989164b5f15b0 (patch)
tree7e977fc7174f6000187cea31b312c3b95a8e58b5 /widgets/table/e-table-state.c
parentabd3336b707a88e839b0cbf8b377dab6eb27d359 (diff)
downloadgsoc2013-evolution-d4d563705e3a8dcfaa13161418b989164b5f15b0.tar
gsoc2013-evolution-d4d563705e3a8dcfaa13161418b989164b5f15b0.tar.gz
gsoc2013-evolution-d4d563705e3a8dcfaa13161418b989164b5f15b0.tar.bz2
gsoc2013-evolution-d4d563705e3a8dcfaa13161418b989164b5f15b0.tar.lz
gsoc2013-evolution-d4d563705e3a8dcfaa13161418b989164b5f15b0.tar.xz
gsoc2013-evolution-d4d563705e3a8dcfaa13161418b989164b5f15b0.tar.zst
gsoc2013-evolution-d4d563705e3a8dcfaa13161418b989164b5f15b0.zip
NULL is not a valid argument to `xmlNewDoc'. Was this code ever
tested *at all*? svn path=/trunk/; revision=5899
Diffstat (limited to 'widgets/table/e-table-state.c')
-rw-r--r--widgets/table/e-table-state.c4
1 files changed, 3 insertions, 1 deletions
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;