summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2013-03-18 18:23:10 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-03-18 09:46:57 -0700
commitdaac2d6e433d060a5e5830017b9b4cca74b0deee (patch)
tree90a4030dbb43b42151d5f14d8f6ddb6abea4b2bd /parse-xml.c
parent959dc942be8c8caa026d90c7492edfb11f3911ba (diff)
downloadsubsurface-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.c7
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");