From: Kaj-Michael Lang Date: Tue, 26 Feb 2008 17:01:45 +0000 (+0200) Subject: Get POI lat/lon from gps if fixed==false X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08778db875fa81f3d93d79bec94b350b35f92a8c;p=mapper Get POI lat/lon from gps if fixed==false --- diff --git a/src/poi-gui.c b/src/poi-gui.c index 653a0d9..5ff42d2 100644 --- a/src/poi-gui.c +++ b/src/poi-gui.c @@ -992,7 +992,8 @@ if (qpdata->fixed==TRUE) { p->lat=qpdata->lat; p->lon=qpdata->lon; } else { - + p->lat=_gps->data.lat; + p->lon=_gps->data.lon; } p->desc=g_strdup("Quick POI, update information please."); @@ -1005,7 +1006,8 @@ if (poi_add(p)==FALSE) { map_poi_cache_clear(); /* Add a text break to the current track */ - txt=g_strdup_printf("QP: %f %f %s", p->lat, p->lon, p->label); + /* XXX: Get category string in here if label is empty */ + txt=g_strdup_printf("QP(%d): %f %f %s", p->cat_id, p->lat, p->lon, p->label); track_insert_mark_text(txt); map_force_redraw();