From daac2d6e433d060a5e5830017b9b4cca74b0deee Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Mon, 18 Mar 2013 18:23:10 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- parse-xml.c | 7 +++++-- 1 file 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"); -- cgit v1.2.3-70-g09d2