mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: Fix so min pressure is not always 0
Signed-off-by: Michael Andreen <michael@andreen.dev>
This commit is contained in:
parent
7217506072
commit
9e95746797
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ static void calculate_max_limits_new(const struct dive *dive, const struct divec
|
||||||
int mbar_end = get_cylinder(dive, cyl)->end.mbar;
|
int mbar_end = get_cylinder(dive, cyl)->end.mbar;
|
||||||
if (mbar_start > maxpressure)
|
if (mbar_start > maxpressure)
|
||||||
maxpressure = mbar_start;
|
maxpressure = mbar_start;
|
||||||
if (mbar_end < minpressure)
|
if (mbar_end && mbar_end < minpressure)
|
||||||
minpressure = mbar_end;
|
minpressure = mbar_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue