From 08778db875fa81f3d93d79bec94b350b35f92a8c Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 26 Feb 2008 19:01:45 +0200 Subject: [PATCH] Get POI lat/lon from gps if fixed==false --- src/poi-gui.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); -- 2.39.5