From 1184fd2fb55d2d0a02febe7426d44138056d5f90 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 23 Jul 2007 13:42:52 +0300 Subject: [PATCH] Handle way ref and int_ref for info banner --- src/map.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 " : "", -- 2.39.5