If we do not have temperature readings, we do not want to plot the
temperature samples either.

See #415

Signed-off-by: Miika Turkia <[email protected]>
---
 parse-xml.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse-xml.c b/parse-xml.c
index 8fc504a..db26190 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] ;
-- 
1.8.3.2

_______________________________________________
subsurface mailing list
[email protected]
http://lists.hohndel.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to