summaryrefslogtreecommitdiffstats
path: root/core/save-xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/save-xml.c')
-rw-r--r--core/save-xml.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/save-xml.c b/core/save-xml.c
index f7564f4b1..84530a749 100644
--- a/core/save-xml.c
+++ b/core/save-xml.c
@@ -457,8 +457,11 @@ void save_one_dive_to_mb(struct membuffer *b, struct dive *dive)
fprintf(stderr, "removed reference to non-existant dive site with uuid %08x\n", dive->dive_site_uuid);
}
show_date(b, dive->when);
- put_format(b, " duration='%u:%02u min'>\n",
- FRACTION(dive->dc.duration.seconds, 60));
+ if (dive->dc.duration.seconds > 0)
+ put_format(b, " duration='%u:%02u min'>\n",
+ FRACTION(dive->dc.duration.seconds, 60));
+ else
+ put_format(b, ">\n");
save_overview(b, dive);
save_cylinder_info(b, dive);
save_weightsystem_info(b, dive);