aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dive.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/dive.c b/dive.c
index 2fdedb10f..18101094e 100644
--- a/dive.c
+++ b/dive.c
@@ -1382,6 +1382,13 @@ struct dive *fixup_dive(struct dive *dive)
sanitize_cylinder_info(dive);
dive->maxcns = dive->cns;
+ /*
+ * Use the dive's temperatures for minimum and maximum in case
+ * we do not have temperatures recorded by DC.
+ */
+
+ update_min_max_temperatures(dive, dive->watertemp);
+
for_each_dc (dive, dc)
fixup_dive_dc(dive, dc);