From: Kaj-Michael Lang Date: Mon, 23 Jul 2007 10:42:52 +0000 (+0300) Subject: Handle way ref and int_ref for info banner X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1184fd2fb55d2d0a02febe7426d44138056d5f90;p=mapper Handle way ref and int_ref for info banner --- diff --git a/src/map.c b/src/map.c index 5fa8820..457ebe4 100644 --- a/src/map.c +++ b/src/map.c @@ -1360,8 +1360,12 @@ map_set_place_information(osm_way *s, osm_place *mp, osm_place *sp, PoiInfo *p) { gchar buffer[256]; -snprintf(buffer, sizeof(buffer), "On %s%s%s%s%s%s%s", +snprintf(buffer, sizeof(buffer), "On %s%s%s%s%s%s%s%s%s%s%s", s ? s->name ? s->name : "unknown" : "?", + s ? s->ref ? ", " : "" : "", + s ? s->ref ? s->ref : "" : "", + s ? s->int_ref ? ", " : "" : "", + s ? s->int_ref ? s->int_ref : "" : "", (p && p->label) ? " near " : "", (p && p->label) ? p->label : "", sp->name ? " in " : "",