diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2020-04-19 07:38:19 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-04-19 10:59:12 -0700 |
commit | 6c9a9b2fb5ff1d8e3aab9b041617349917ac5061 (patch) | |
tree | 25869546fff9ee5b3a433765c8003b2e515852da /.gitignore | |
parent | eb6dfd3745b003f6450445c5073a280b96c7f3db (diff) | |
download | subsurface-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 '.gitignore')
0 files changed, 0 insertions, 0 deletions