]> err.no Git - mapper/commitdiff
Add a track note when adding quick POIs
authorKaj-Michael Lang <milang@onion.tal.org>
Mon, 4 Feb 2008 12:35:49 +0000 (14:35 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Mon, 4 Feb 2008 12:35:49 +0000 (14:35 +0200)
src/poi-gui.c

index 9c0ea3d4bbb2bfb6974d6fc22d48fae1be07e773..33e4f03c69693aa0b801cfaadd2a4cbc053021fb 100644 (file)
@@ -992,9 +992,15 @@ p->desc=g_strdup("Quick POI, update information please.");
 if (poi_add(p)==FALSE) {
        popup_error(_window, _("Problem adding POI"));
 } else {
+       gchar *txt;
+
        map_poi_cache_clear();
        map_force_redraw();
        gtk_widget_destroy(qp.dialog);
+
+       /* Add a text break to the current track */
+       txt=g_strdup_printf("QP: %f %f %s", p->lat, p->lon, p->label);
+       track_insert_mark_text(txt);
 }
 
 poi_free(p);