[PATCH 2/2] Add .txt to notes on MK6 import
Miika Turkia
miika.turkia at gmail.com
Fri Oct 31 14:06:38 PDT 2014
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
file.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/file.c b/file.c
index ad5b035..c22f29f 100644
--- a/file.c
+++ b/file.c
@@ -487,6 +487,9 @@ int parse_txt_file(const char *filename, const char *csv)
dive->cylinder[cur_cylinder_index].gasmix.he.permille = he * 10;
cur_cylinder_index++;
+ lineptr = strstr(memtxt.buffer, "Dive started at");
+ if (lineptr)
+ dive->notes = strdup(lineptr);
dc = &dive->dc;
/*
--
1.9.1
More information about the subsurface
mailing list