aboutsummaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-04 15:34:30 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-11-04 15:38:46 -0700
commit4b735521e2561fe6d03f9f94122fbdc58f48e4a5 (patch)
tree9a76d724b1df37d3590915421891e8148d419033 /dive.h
parent93d07f631aec470fb9f920f66ccb03ce699942b5 (diff)
downloadsubsurface-4b735521e2561fe6d03f9f94122fbdc58f48e4a5.tar.gz
Fix missing pressure plot at start of the dive in some situations
In some situations we could end up with no sample pressure and no interpolated pressure at time = 0. This is now fixed. Fix notes in test dive the exposed the issue. Also change the code in create_plot_info to keep the number of samples and the number of corresponding pi entries in separate variables. This avoids future changes from breaking if they assume they can access dive->sample[nr_samples - 1] (which is a reasonable assumption to make). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
0 files changed, 0 insertions, 0 deletions