From: Kaj-Michael Lang Date: Mon, 15 Oct 2007 08:38:37 +0000 (+0300) Subject: Update screen when setting home or destination X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ead586e3631c6fdb5a50efa3d0698e5edb24c269;p=mapper Update screen when setting home or destination --- diff --git a/src/cb.c b/src/cb.c index 23946c6..94ebbc3 100644 --- a/src/cb.c +++ b/src/cb.c @@ -438,7 +438,7 @@ gboolean cb_zoom_base(GtkAction * action) { map_set_autozoom(FALSE); -map_set_zoom(4); +map_set_zoom(3); return TRUE; } @@ -1012,6 +1012,7 @@ unit2latlon(unitx, unity, _home.lat, _home.lon); _home.valid=TRUE; config_save_home(); +map_render_data(); return TRUE; } @@ -1024,6 +1025,7 @@ unitx = x2unit(_cmenu_position_x); unity = y2unit(_cmenu_position_y); unit2latlon(unitx, unity, _dest.lat, _dest.lon); _dest.valid=TRUE; +map_update_location_from_center(); return TRUE; }