diff options
author | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-23 14:19:23 +0000 |
---|---|---|
committer | mdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-23 14:19:23 +0000 |
commit | 5ffd148005e79acd48fee04bcfa5b68394dafbc9 (patch) | |
tree | 3172f0097adc7b043661568de125c71b476e8759 /navit | |
parent | 78e9feea1327c21d46ae96a33437cdb73c532b9e (diff) | |
download | navit-5ffd148005e79acd48fee04bcfa5b68394dafbc9.tar.gz |
Fix:maptool:In way2poi converter, treat item as area only if navit knows strictly more reasons to draw it as area than as a line. Should fix icon placement and warnings for slipways, bridge attractions and such. Pointed out by jongleur @irc.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5160 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit')
-rw-r--r-- | navit/maptool/osm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/navit/maptool/osm.c b/navit/maptool/osm.c index a760469a5..ca55f5e3e 100644 --- a/navit/maptool/osm.c +++ b/navit/maptool/osm.c @@ -1670,7 +1670,7 @@ osm_end_way(struct maptool_osm *osm) item_bin_add_attr_string(item_bin, attr_county_name, attr_strings[attr_string_county_name]); item_bin_add_attr_string(item_bin, attr_url, attr_strings[attr_string_url]); item_bin_add_attr_longlong(item_bin, attr_osm_wayid, osmid_attr_value); - item_bin_write(item_bin, count_areas<count_lines?osm->line2poi:osm->poly2poi); + item_bin_write(item_bin, count_areas<=count_lines ? osm->line2poi:osm->poly2poi); } } attr_longest_match_clear(); |