From 81659f7a8028f1d5367b6571ccd7dbc05d2702f9 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 27 Jul 2007 13:15:50 +0300 Subject: [PATCH] Fix toolbar add POI location --- src/cb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cb.c b/src/cb.c index 64e5eb2..a1d3554 100644 --- a/src/cb.c +++ b/src/cb.c @@ -1231,9 +1231,11 @@ gboolean cmenu_cb_loc_add_poi(GtkAction * action) gboolean cb_add_poi(GtkAction * action) { + guint unitx, unity; printf("%s()\n", __PRETTY_FUNCTION__); - poi_dialog(ACTION_ADD_POI, _gps.lat, _gps.lon); + latlon2unit(_gps.lat, _gps.lon, unitx, unity); + poi_dialog(ACTION_ADD_POI, unitx, unity); vprintf("%s(): return TRUE\n", __PRETTY_FUNCTION__); return TRUE; -- 2.39.5