]> git.tdb.fi Git - ext/subsurface.git/blobdiff - save-xml.c
Now that we don't mess up import, we can save the cylinder working pressure
[ext/subsurface.git] / save-xml.c
index 07b8b80969d25f28616499083b8aab452127fd22..c93a828cc54f8fa5b1c29eb28bf7b42762fe034e 100644 (file)
@@ -180,6 +180,7 @@ static void save_cylinder_info(FILE *f, struct dive *dive)
                }
                if (volume)
                        show_milli(f, " size='", volume, " l", "'");
+               show_pressure(f, cylinder->type.workingpressure, " workpressure='", "'");
                if (description)
                        fprintf(f, " description='%s'", description);
                show_pressure(f, cylinder->start, " start='", "'");
@@ -226,7 +227,7 @@ void save_dives(const char *filename)
                return;
 
        /* Flush any edits of current dives back to the dives! */
-       flush_dive_info_changes();
+       update_dive(NULL);
 
        fprintf(f, "<dives>\n<program name='diveclog' version='%d'></program>\n", VERSION);
        for (i = 0; i < dive_table.nr; i++)