aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--profile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index f5d287bfd..373ac8eb3 100644
--- a/profile.c
+++ b/profile.c
@@ -686,6 +686,8 @@ struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer
unsigned int mbar = dive->cylinder[cyl].start.mbar;
if (mbar > maxpressure)
maxpressure = mbar;
+ if (mbar < minpressure)
+ minpressure = mbar;
}
/* Then do all the samples from all the dive computers */