From 10e8e075f87194a20c234579ab6049f211b798f2 Mon Sep 17 00:00:00 2001 From: Stefan Wildemann Date: Thu, 1 Aug 2019 01:03:16 +0200 Subject: Fix turn restriction processing --- navit/maptool/osm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/navit/maptool/osm.c b/navit/maptool/osm.c index fa5bde9b1..588879d66 100644 --- a/navit/maptool/osm.c +++ b/navit/maptool/osm.c @@ -1621,14 +1621,18 @@ void osm_end_relation(struct maptool_osm *osm) { tmp_item_bin->type = type; } else { type=type_none; - tmp_item_bin->type=type; + /* do not touch tmp_item_bin->type in this case, as it may be already set! For example + * indicating the turn restrictions */ + //tmp_item_bin->type=type; } } else { if(attr_longest_match(attr_mapping_rel2poly_place, attr_mapping_rel2poly_place_count, &type, 1)) { tmp_item_bin->type=type; } else { type=type_none; - tmp_item_bin->type=type; + /* do not touch tmp_item_bin->type in this case, as it may be already set! For example + * indicating the turn restrictions */ + //tmp_item_bin->type=type; } } -- cgit v1.2.1