From ead586e3631c6fdb5a50efa3d0698e5edb24c269 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 15 Oct 2007 11:38:37 +0300 Subject: [PATCH] Update screen when setting home or destination --- src/cb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.39.5