diff options
Diffstat (limited to 'save-xml.c')
-rw-r--r-- | save-xml.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/save-xml.c b/save-xml.c index 31ad436bc..736e6a4db 100644 --- a/save-xml.c +++ b/save-xml.c @@ -351,6 +351,11 @@ static void save_dc(struct membuffer *b, struct dive *dive, struct divecomputer show_date(b, dc->when); if (dc->duration.seconds && dc->duration.seconds != dive->dc.duration.seconds) put_duration(b, dc->duration, " duration='", " min'"); + if (dc->dctype != OC) { + for (enum dive_comp_type i = 0; i < NUM_DC_TYPE; i++) + if (dc->dctype == i) + show_utf8(b, dctype_text[i], " dctype='", "'", 1); + } put_format(b, ">\n"); save_depths(b, dc); save_temperatures(b, dc); |