Fix profile display for dives with no samples

Linus Torvalds torvalds at linux-foundation.org
Fri Jan 4 14:18:35 PST 2013


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 at linux-foundation.org>
---

Duh. I think this broke when I started doing the multi-divecomputer setup.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: application/octet-stream
Size: 1176 bytes
Desc: not available
URL: <http://lists.hohndel.org/pipermail/subsurface/attachments/20130104/8c3d5e88/attachment.obj>


More information about the subsurface mailing list