summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-07-22 22:03:41 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-23 06:30:39 -0700
commitaa4ed491fdac62d011fc66d39c364b104a95b6e3 (patch)
treee03189e4ed6cceb508beca32f5e61b834fb530e6 /parse-xml.c
parent9a68e356af425b4268589b014eb50ef1f276b893 (diff)
downloadsubsurface-aa4ed491fdac62d011fc66d39c364b104a95b6e3.tar.gz
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>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 3d0c6a1e5..429277f49 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -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;