summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-09-28 10:21:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-06 19:47:06 -0700
commit810903bdb9db84997dc3d32bb8e934e320784a4d (patch)
tree8002aad04364e23e598ab84eee8eb96e96770599 /core/downloadfromdcthread.cpp
parentc32e71e64d97016d201aea26f0623de6cd65d74d (diff)
downloadsubsurface-810903bdb9db84997dc3d32bb8e934e320784a4d.tar.gz
Import: pass a dive table to process_imported_dives()
Dives were directly imported into the global dive table and then merged in process_imported_dives(). Make this interface more flexible, by passing an independent dive table. The dive table of the to-be-imported dives will be sorted and merged. Then each dive is inserted in a one-by-one manner to into the global dive table. This actually introduces (at least) two functional changes: 1) If a new dive spans two old dives, it will only be merged to the first dive. But this seems like a pathological case, which is of dubious value anyway. 2) Dives unrelated to the import will not be merged. The old code would happily merge dives that were not even close to the newly imported dives. A surprising behavior. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/downloadfromdcthread.cpp')
0 files changed, 0 insertions, 0 deletions