summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/save-xml.c b/save-xml.c
index 233482969..0e770ec62 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -467,7 +467,7 @@ void save_dive(FILE *f, struct dive *dive)
fprintf(f, " rating='%d'", dive->rating);
if (dive->visibility)
fprintf(f, " visibility='%d'", dive->visibility);
- if (dive->dive_tags)
+ if (dive->dive_tags)
save_tags(f, dive->dive_tags);
show_date(f, dive->when);
@@ -575,9 +575,6 @@ void save_dives_logic(const char *filename, const gboolean select_only)
if (!f)
return;
- /* Flush any edits of current dives back to the dives! */
- update_dive(current_dive);
-
fprintf(f, "<divelog program='subsurface' version='%d'>\n<settings>\n", VERSION);
/* save the dive computer nicknames, if any */