summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
authormdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-06-23 14:19:23 +0000
committermdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-06-23 14:19:23 +0000
commit5ffd148005e79acd48fee04bcfa5b68394dafbc9 (patch)
tree3172f0097adc7b043661568de125c71b476e8759 /navit
parent78e9feea1327c21d46ae96a33437cdb73c532b9e (diff)
downloadnavit-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.c2
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();