From: Kaj-Michael Lang Date: Fri, 27 Jul 2007 10:15:50 +0000 (+0300) Subject: Fix toolbar add POI location X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81659f7a8028f1d5367b6571ccd7dbc05d2702f9;p=mapper Fix toolbar add POI location --- 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;