mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Divinglog import: fix maximum depth
Max depth is recorded in floating point in metadata. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
9a68e356af
commit
aa4ed491fd
1 changed files with 1 additions and 1 deletions
|
@ -3109,7 +3109,7 @@ extern int divinglog_dive(void *param, int columns, char **data, char **column)
|
|||
utf8_string(data[4], &cur_dive->notes);
|
||||
|
||||
if (data[5])
|
||||
cur_dive->dc.maxdepth.mm = atoi(data[5]) * 1000;
|
||||
cur_dive->dc.maxdepth.mm = atof(data[5]) * 1000;
|
||||
|
||||
if (data[6])
|
||||
cur_dive->dc.duration.seconds = atoi(data[6]) * 60;
|
||||
|
|
Loading…
Reference in a new issue