summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2020-04-19 07:38:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-04-19 10:59:12 -0700
commit6c9a9b2fb5ff1d8e3aab9b041617349917ac5061 (patch)
tree25869546fff9ee5b3a433765c8003b2e515852da /tests
parenteb6dfd3745b003f6450445c5073a280b96c7f3db (diff)
downloadsubsurface-6c9a9b2fb5ff1d8e3aab9b041617349917ac5061.tar.gz
[smtk-import] Do not create cylinders structure before libdc parsing
The d->cylinders created will be overriden by libdivecomputer parsing, resulting in 0, 1 , may be 2 cylinders depending on DC data. This is not what we want when importing a divelog, because we will miss all hand entered tanks. BTW, using get_cylinder() on tank number bigger than created, results in a NULL pointer and a crash. As we can't foresee how many tanks (or even it's positional numbers in log) a diver has used, the full 10 tanks supported by SmarTrak can be easily created and parsed using get_or_create_cylinder(), and unused cleaned later. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions