summaryrefslogtreecommitdiffstats
path: root/dive.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-31 23:47:26 +1100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-31 23:50:35 +1100
commitaa55bda94433ba22df2f4a4bff1c3f78f6fd8406 (patch)
tree53a035e679127c9e38c35d81930c3c9f995eb321 /dive.h
parentde7d5b2d5b441b3c8efa29a6b64a7685ef835768 (diff)
downloadsubsurface-aa55bda94433ba22df2f4a4bff1c3f78f6fd8406.tar.gz
Don't allow to plan dives out of order
The planned dive always has to be the last dive in the dive list. To make sure of that we interpret the relative start time to be relative to either the current time or the end of the last dive, whichever is later. This fixes a bug where we would delete the wrong dive and get our data structures confused by planning multiple dives out of order. Reported-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
0 files changed, 0 insertions, 0 deletions