mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
959dc942be
commit
daac2d6e43
1 changed files with 5 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue