summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-01-09 23:14:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-10 16:13:22 +0700
commitb79ef63388dea9954037dbc5c9406c8de649ec32 (patch)
tree777e8e44af05502851e3732b9db6ace896194f02 /parse-xml.c
parent6a0f05eacc509cd2d84b060fddbb55dc5aafa7fd (diff)
downloadsubsurface-b79ef63388dea9954037dbc5c9406c8de649ec32.tar.gz
Do not plot temperatures on DM4 import if no info
If we do not have temperature readings, we do not want to plot the temperature samples either. See #415 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 8fc504a3f..db26190b9 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1802,7 +1802,7 @@ extern int dm4_dive(void *param, int columns, char **data, char **column)
else
cur_sample->depth.mm = cur_dive->dc.maxdepth.mm;
- if (tempBlob)
+ if (data[18] && data[18][0])
cur_sample->temperature.mkelvin = C_to_mkelvin(tempBlob[i]);
if (data[19] && data[19][0])
cur_sample->cylinderpressure.mbar = pressureBlob[i] ;