Ticket #526: fix-ticket-526

File fix-ticket-526, 582 bytes (added by pini, 11 years ago)
Line 
1Fix for navit trac ticket #526.
2diff --git a/navit/map/mg/map.c b/navit/map/mg/map.c
3index 61099f3..507e066 100644
4--- a/navit/map/mg/map.c
5+++ b/navit/map/mg/map.c
6@@ -307,6 +307,10 @@ map_rect_get_item_byid_mg(struct map_rect_priv *mr, int id_hi, int id_lo)
7                if (street_get_byid(mr, &mr->street, id_hi, id_lo, &mr->item))
8                        return &mr->item;
9                break;
10+       case file_strname_stn:
11+               if (street_name_get_byid(mr, &mr->street, id_hi, id_lo, &mr->item))
12+                       return &mr->item;
13+               break;
14        default:       
15                if (poly_get_byid(mr, &mr->poly, id_hi, id_lo, &mr->item))
16                        return &mr->item;