diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2013-03-18 18:23:10 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-03-18 09:46:57 -0700 |
commit | daac2d6e433d060a5e5830017b9b4cca74b0deee (patch) | |
tree | 90a4030dbb43b42151d5f14d8f6ddb6abea4b2bd /parse-xml.c | |
parent | 959dc942be8c8caa026d90c7492edfb11f3911ba (diff) | |
download | subsurface-daac2d6e433d060a5e5830017b9b4cca74b0deee.tar.gz |
Generate heading event on DM4 import
Previously the heading information was on bookmark event, but now we
trigger a heading event when direction info is available.
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.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/parse-xml.c b/parse-xml.c index 2ecd063b2..707ac271d 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -1644,9 +1644,12 @@ extern int dm4_events(void *handle, int columns, char **data, char **column) break; case 258: /* 258 Bookmark */ - cur_event.name = strdup("bookmark"); - if (data[3]) + if (data[3]) { + cur_event.name = strdup("heading"); cur_event.value = atoi(data[3]); + } else { + cur_event.name = strdup("bookmark"); + } break; default: cur_event.name = strdup("unknown"); |