aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;