#define item_is_poly_place(item) ((item).type >= type_poly_place1 && (item).type <= type_poly_place6)
#define item_is_point(item) ((item).type < type_line)
#define item_is_custom_poi(item) ((item).type >= type_poi_custom0 && (item).type < type_line)
+#define item_is_street(item) (((item).type >= type_street_0 && (item).type < type_street_1_land) \
+ || (item).type == type_street_pedestrian \
+ || (item).type == type_living_street)
#define item_is_equal_id(a,b) ((a).id_hi == (b).id_hi && (a).id_lo == (b).id_lo)
#define item_is_equal(a,b) (item_is_equal_id(a,b) && (a).map == (b).map)
}
continue;
}
- if ((it->type == type_street_3_city) || (it->type == type_street_2_city) || (it->type == type_street_1_city) || (it->type == type_living_street)) {
+ if (item_is_street(*it)) {
struct attr at;
if (map_selection_contains_item_rect(map_search->mr->sel, it) && binfile_attr_get(it->priv_data, attr_label, &at)) {
int i,match=0;