diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-01-31 23:47:26 +1100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-01-31 23:50:35 +1100 |
commit | aa55bda94433ba22df2f4a4bff1c3f78f6fd8406 (patch) | |
tree | 53a035e679127c9e38c35d81930c3c9f995eb321 /dive.h | |
parent | de7d5b2d5b441b3c8efa29a6b64a7685ef835768 (diff) | |
download | subsurface-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