parent
427f915f62
commit
bd277de1bc
@ -913,6 +913,8 @@ create_save_doc(AgChart *chart)
|
||||
gchar *value;
|
||||
GsweCoordinates *coordinates;
|
||||
GsweTimestamp *timestamp;
|
||||
GEnumClass *house_system_class;
|
||||
GEnumValue *enum_value;
|
||||
|
||||
doc = xmlNewDoc(BAD_CAST "1.0");
|
||||
root_node = xmlNewNode(NULL, BAD_CAST "chartinfo");
|
||||
@ -1010,6 +1012,19 @@ create_save_doc(AgChart *chart)
|
||||
xmlNewChild(time_node, NULL, BAD_CAST "timezone", BAD_CAST value);
|
||||
g_free(value);
|
||||
|
||||
house_system_class = g_type_class_ref(GSWE_TYPE_HOUSE_SYSTEM);
|
||||
enum_value = g_enum_get_value(
|
||||
house_system_class,
|
||||
gswe_moment_get_house_system(GSWE_MOMENT(chart))
|
||||
);
|
||||
xmlNewChild(
|
||||
data_node,
|
||||
NULL,
|
||||
BAD_CAST "housesystem",
|
||||
BAD_CAST enum_value->value_nick
|
||||
);
|
||||
g_type_class_unref(house_system_class);
|
||||
|
||||
if (ag_chart_get_note(chart)) {
|
||||
xmlNewChild(
|
||||
root_node,
|
||||
|
Loading…
Reference in New Issue
Block a user