mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Actually walk all dive computers, don't just claim to do so
If the first dive computer had pressure samples, but the second one (and no higher one) did, then we would draw a flat horizontal line for the tank pressure graph (but lable it with the correct pressures). This routine that is hunting for the actual maxima and minima does have to really go through all dive computers, not just "this one and up". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d6499cc32a
commit
86c961614b
3 changed files with 4 additions and 3 deletions
|
@ -518,7 +518,7 @@ void ProfileWidget2::plotDive(struct dive *d, bool force)
|
|||
* so I'll *not* calculate everything if something is not being
|
||||
* shown.
|
||||
*/
|
||||
plotInfo = calculate_max_limits_new(&displayed_dive, currentdc);
|
||||
plotInfo = calculate_max_limits_new(&displayed_dive);
|
||||
create_plot_info_new(&displayed_dive, currentdc, &plotInfo, !shouldCalculateMaxDepth);
|
||||
if (shouldCalculateMaxTime)
|
||||
maxtime = get_maxtime(&plotInfo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue