summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2013-01-04 14:18:35 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-05 00:18:30 -0800
commit635f190302cc3b00fb4daedd4fced940fcee7349 (patch)
tree04a7c0b20232708534f3f1fe11bb1e22eb9c6063 /main.c
parentcca847791ab0138ecc3597193dd1eab133ed3ee9 (diff)
downloadsubsurface-635f190302cc3b00fb4daedd4fced940fcee7349.tar.gz
Fix profile display for dives with no samples
For dives with no samples, we crate a fake dive computer with a set of made-up samples and use those to display the profile. However, the actual calculations to do the maximum duration and depth etc were always done with the "real" dive information, which is empty. As a result, the scale of the plot ended up being bogus, and part of the dive would be missing. Trivially fix by just passing the same dive computer information to calculate_max_limits() that we use for everything else. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'main.c')
0 files changed, 0 insertions, 0 deletions