diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-08-17 20:59:46 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-08-17 13:21:49 -0700 |
commit | f24fe107655acaed8a0765d70100d351e9e38706 (patch) | |
tree | 9bbb88229743782f8b58d36062a82dc4b4574eb0 /core/btdiscovery.cpp | |
parent | 9ae2a8bf7a0896f8c55e9c9a87b2b48265be62d9 (diff) | |
download | subsurface-f24fe107655acaed8a0765d70100d351e9e38706.tar.gz |
core: fix dive renumbering logic on import
0249e12 split up the dive import logic in multiple steps. Thereby,
the one of the conditions for renumbering the imported dives (is
the last old dive numbered) got messed up: The first number of the
new dive was compared to the total number of old dives, which makes
no sense.
- Simply check for the number of the last existing dive (if any).
- Don't remember the number of old dives - the original table is
not modified anyway.
Fixes #2731
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/btdiscovery.cpp')
0 files changed, 0 insertions, 0 deletions