subsurface/smtk-import
Salvador Cuñat 6c9a9b2fb5 [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>
2020-04-19 10:59:12 -07:00
..
cmake/Modules smtk-import: add cmake modules and .nsi skeleton 2017-06-11 13:50:30 -07:00
CMakeLists.txt CMake: call cmake_minimim_required() before project() 2019-03-19 12:41:32 -07:00
smartrak.c [smtk-import] Do not create cylinders structure before libdc parsing 2020-04-19 10:59:12 -07:00
smrtk2ssrfc_window.cpp Cleanup: move error reporting function declarations to errorhelper.h 2019-08-08 16:26:30 -07:00
smrtk2ssrfc_window.h Cleanup: make lastUsedDir() functions static and non-slot, respectively 2018-06-09 17:11:29 +02:00
smrtk2ssrfc_window.ui Use icons relative path. 2017-11-30 23:14:46 -08:00
smtk2ssrf.desktop smtk-import: Add smtk2ssrf.desktop to sources 2018-02-24 13:42:01 -08:00
smtk_standalone.cpp Optional anonymization upon export 2018-09-13 08:16:54 -07:00