diff options
author | Stefan Wildemann <metalstrolch@users.noreply.github.com> | 2021-09-08 11:00:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 11:00:46 +0200 |
commit | da065b411d6bee9e7f9b7424bb615d64c7e4cc54 (patch) | |
tree | bf958f6a482a475d469d5f9d866004aee384dcb7 | |
parent | e071fb187020c81d0cc0de190cb4b7c60e589ce8 (diff) | |
download | navit-da065b411d6bee9e7f9b7424bb615d64c7e4cc54.tar.gz |
FIX:maptool: remove assertion from item_bin_copy_attr (#1149)
The removed assertion disallowed the use of item_bin_copy_attr for
anything else than attr_osm_wayid when debug build was enabled. This
used to work prior the introduction of multipolygon support. There
item_bin_copy_attr is used to copy al kind of attrs not knowing about
the assert.
So remove the assert as it seems to have been never correct.
-rw-r--r-- | navit/maptool/itembin.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/navit/maptool/itembin.c b/navit/maptool/itembin.c index 3996d6f6a..5df29df77 100644 --- a/navit/maptool/itembin.c +++ b/navit/maptool/itembin.c @@ -85,13 +85,10 @@ void item_bin_copy_coord(struct item_bin *ib, struct item_bin *from, int dir) { for (i = 1 ; i <= count ; i++) item_bin_add_coord(ib, &c[count-i], 1); } - void item_bin_copy_attr(struct item_bin *ib, struct item_bin *from, enum attr_type attr) { struct attr_bin *ab=item_bin_get_attr_bin(from, attr, NULL); if (ab) item_bin_add_attr_data(ib, ab->type, (void *)(ab+1), (ab->len-1)*4); - assert(attr == attr_osm_wayid); - assert(item_bin_get_wayid(ib) == item_bin_get_wayid(from)); } void item_bin_add_coord_rect(struct item_bin *ib, struct rect *r) { |